I've tried debugging it and noticed that it starts to differ here: InlineBuilder.kt-addRawTokens#L66. exitOffset is passed always as +1, but iterator.rawStart(rawIdx + dx) != exitOffset when the header level is bigger than 1. I'm not sure how to to fix it so reporting.
Looks resolved in 0.4.0. Now the behavior is the same across different header levels. A redundant whitespace can be removed from the user-side in the same way.
Works OK for headers of level 1.
I've tried debugging it and noticed that it starts to differ here: InlineBuilder.kt-addRawTokens#L66.
exitOffset
is passed always as+1
, butiterator.rawStart(rawIdx + dx) != exitOffset
when the header level is bigger than 1. I'm not sure how to to fix it so reporting.To reproduce:
Expected: the second tree is the same as the first one: without whitespaces.
Checked on 0.3.1 and 0.3.6.