jgm / djot

A light markup language
https://djot.net
MIT License
1.62k stars 43 forks source link

Comment syntax is unclear #252

Closed st-pasha closed 8 months ago

st-pasha commented 8 months ago

The syntax spec seems to suggest that a comment can be added by surrounding it with {% ... %}. However, in the playground the following doesn't work:

{% 
Paragraph 1

Paragraph 2
%}

In this example both {% and %} currently render verbatim.

It appears that the comment only works if both the opening {% and closing %} are on the same line. I think that this is too restrictive. In practice, larger comments may be needed in a document in some cases:

Also, somehow this is not a comment at all?

{% Paragraph {% ! %} one %}
jgm commented 8 months ago

Duplicate of #67