Skip to content

feat: support arbitrary-length backtick fences for Anki codeblock#54

Open
mateusz-szafarz wants to merge 1 commit intoJeppeKlitgaard:masterfrom
mateusz-szafarz:feature/support-dynamic-backtick-fences
Open

feat: support arbitrary-length backtick fences for Anki codeblock#54
mateusz-szafarz wants to merge 1 commit intoJeppeKlitgaard:masterfrom
mateusz-szafarz:feature/support-dynamic-backtick-fences

Conversation

@mateusz-szafarz
Copy link

Previously only 3-backtick fences were recognized. This change uses a dynamic fence matcher with a PEGgy semantic predicate to support any fence length (3+), requiring matching open/close lengths. This enables embedding code blocks inside flashcard definitions by using a longer fence as the outer delimiter.

Previously only 3-backtick fences were recognized. This change uses a dynamic fence matcher with a PEGgy semantic predicate to support any fence length (3+), requiring matching open/close lengths. This enables embedding code blocks inside flashcard definitions by using a longer fence as the outer delimiter.
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