Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Isolate Code parser from Directives #88

Open
Mpdreamz opened this issue Nov 21, 2024 · 0 comments
Open

Isolate Code parser from Directives #88

Mpdreamz opened this issue Nov 21, 2024 · 0 comments
Labels
authoring Relates to our markdown parser

Comments

@Mpdreamz
Copy link
Member

Today directives and code blocks share the same parser.

This is not a sustainable solution in the long run as code is currently parsed as markdown and then we do some hacks to render the original content.

This issue serves as a reminder to separate the two and ensure code blocks are LeafBlock's in the AST so that its contents are not parsed and treated as a raw string slice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
authoring Relates to our markdown parser
Projects
None yet
Development

No branches or pull requests

1 participant