Skip to content

fix(partners): require a full-line frontmatter close fence - #689

Open
santhreal wants to merge 7 commits into
HKUDS:devfrom
santhreal:fix/strip-frontmatter-close-fence
Open

fix(partners): require a full-line frontmatter close fence#689
santhreal wants to merge 7 commits into
HKUDS:devfrom
santhreal:fix/strip-frontmatter-close-fence

Conversation

@santhreal

Copy link
Copy Markdown
Contributor

strip_frontmatter treated any line starting with --- as the closing fence, so a value like ---not-a-fence truncated persona YAML and dropped the rest of the body.

Require the closing --- to be alone on its line, and still strip empty ---/--- blocks.

strip_frontmatter treated any line starting with --- as the closing
fence, so a value like ---not-a-fence dropped the rest of the persona.
The close-fence regex required a content line between --- markers, so
---\n---\nbody no longer stripped. Make the body segment optional.
…r-close-fence

# Conflicts:
#	deeptutor/skills/builtin/pdf/SKILL.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant