-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Fix over-stripped comments in the inline code #28
Conversation
#25 gives a hint how to resolve this bug. We could resolve by parsing comment as like as markdown-it's html block rule. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have changed the comment parsing approach to parse as HTML block. It would become not to work parsing in inline comment.
}) | ||
|
||
it('strips comment in rendering', () => { | ||
// TODO: Supports inline comment | ||
it.skip('strips comment in rendering', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The inline comment will become not to work by parsing comment as HTML block.
In the current use case (directive), this change may almost not affect the user. However, we are planning to use HTML comment as presenter notes in Marp. The inline comment will become to be used when a tool integrated with Marpit implements the presentation mode.
Currently, we mark a test case as pending.
This PR will fix over-stripped comments in the inline code on Marpit comment plugin.
We discover that a HTML comment wrapping by backtiks (
`<!-- like this -->`
) is vanished. This caused by processing parse comments earliar than the inline codes.We are thinking that it solve by adding rule for inline parsing of comments like a background image plugin.