Reputation: 3683
I'm using VScode with Markdown Preview Enhanced and I'm writing some contents with lines commented out in markdown files, as shown below.
Due to the evolving situation of COVID-19,
I will conduct
almost all experiments
<!-- will be conducted -->
via
web-based formats of
I would like to preview the markdown contents above in the following style: the line I commented out (i.e. <!-- will be conducted -->
) is just ignored and the surrounding words of the line commented out (i.e. experiments
and via
) are concatenated with a one blank space in the preview:
However, the line commented out is wrongly counted as a line break, and a new paragraph undesirably starts after the line commented out. How can I stop this behaviour?
I set the configuration of the Markdown Preview Enhanced so that pandoc renders the preview from the markdown by "markdown-preview-enhanced.usePandocParser": true
.
Upvotes: 0
Views: 979
Reputation: 11
Try the following. Leave a blank line above and below the commented line.
[//]: # (Example Comment)
As this comments parse md format, Following is the output:
Due to the evolving situation of COVID-19, I will conduct almost all experiments
via web-based formats of
Upvotes: 1