Handle relative links in LiaScript YAML frontmatter; remove invalid @import pattern#4
Draft
Handle relative links in LiaScript YAML frontmatter; remove invalid @import pattern#4
Conversation
Agent-Logs-Url: https://github.com/TUBAF-IfI-LiaScript/pack_liascript_course/sessions/37cd8aea-20ce-4748-9d82-83377bd027fb Co-authored-by: vgoehler <1705385+vgoehler@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update yaml header to include relative link support
Handle relative links in LiaScript YAML frontmatter; remove invalid @import pattern
Mar 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The packer missed assets declared in the LiaScript YAML header (e.g.
import,link,script,logo) and had a spurious@importregex pattern that doesn't correspond to any real LiaScript syntax.Changes
@importregex from_LINK_PATTERNS— not a LiaScript feature_extract_yaml_frontmatter_links()— lightweight line-by-line parser for the YAML block between---markers; extracts file references fromimport,link,script, andlogofields, handling both scalar and list values, quoted or unquotedextract_relative_links()before the body regex pass, with shared dedup/absolute-URL filteringExample
A header like:
now correctly adds
images/banner.jpg,styles/custom.css,macros/helpers.md, andjs/init.jsto the ZIP, while ignoring the absolute URL.⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.