Skip to content

🐛 FIX: Stop a myst line comment at a less indented line - #177

Open
abhishekcpp007 wants to merge 1 commit into
executablebooks:masterfrom
abhishekcpp007:fix/myst-line-comment-indent
Open

abhishekcpp007 wants to merge 1 commit into
executablebooks:masterfrom
abhishekcpp007:fix/myst-line-comment-indent

Conversation

@abhishekcpp007

Copy link
Copy Markdown
Contributor

line_comment keeps adding following % lines to the comment without checking their indent, so a comment at column 0 after a commented list item gets pulled into the item:

- a
  % abc
% def

renders as <li>a<!-- abc\ndef --></li>, and the myst_line_comment token map is [1, 3]. A heading in the same spot leaves the list correctly. This adds the sCount < blkIndent check the core block rules use.

This branch has not been deployed

No deployments
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