Footnotes and indentation


#1

While trying to implement footnotes, what would be the best indentation rules for continuation? Should it be done a bit similar to the way CommonMark is already working for list?

PHP Markdown Extra and Pandoc for example require a fixed indentation of a tab, but in the philosophy of CommonMark shouldn’t we indent on the first non-whitespace char following the [^xxx]:

This is a text[^1]

[^1]: This is footnote
      > This is quote block

Tis is not a continuation
      

Footnote extensions vs Link Reference Definition
#2

If lazy continuation works for footnotes, shouldn’t it work the same for normal reference link definitions?


#3

Oops, sorry for the confusion. It is about regular continuation not lazy (I have edited my original post)


#4

The problem is that the footnote reference markers can be quite long. (I often use fairly descriptive ones, not just numbers.) So I think doing it the way pandoc does makes the most sense.


#5

ah, I was suspecting this, without having using much them so far, so that make sense, thanks!


#6

Implementations could consider the label, maybe including the square brackets, to be a fixed length, say 3 characters, no matter its actual length, and then apply the usual indentation rules.