MyST-Parser icon indicating copy to clipboard operation
MyST-Parser copied to clipboard

Document "Target" as block token

Open hukkin opened this issue 3 years ago • 2 comments

It appears to me that "Target" is block level token, not inline (as currently documented), and does block token like things, e.g. splitting a paragraph in two.

Is it intentional that "Target" is documented as an inline token?

hukkin avatar Apr 13 '21 14:04 hukkin

nope should definitely be a block level cheers

chrisjsewell avatar Apr 13 '21 14:04 chrisjsewell

On a related note, the docs say the following about inline tokens:

Span (or inline) tokens are defined on a single line of content.

I think this definition is the reason why "target" is listed as an inline token: because "targets" are defined on a single line.

The definition is incorrect however. Inline token definitions can be multi-line, for instance:

`multi line
inline token`

hukkin avatar Apr 14 '21 10:04 hukkin