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

Put code fence indents into separate whitespace nodes instead of fence content #112

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FirstTimeInForever
Copy link
Collaborator

Currently, indented code fences are incorrectly represented in the AST. Currently, the actual indents are being put into the CODE_FENCE_CONTENT nodes, which makes language injections much harder, since you need to manually calculate indents for each fence line.
This PR solves this problem by calculating indents during parsing and putting them into separate WHITE_SPACE nodes, so they won't pollute actual content nodes.

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