Closed tripodsan closed 3 years ago
Yes this changed, because actual html at the start of a line in a paragraph, is almost always seen as block html.
A) why is the character reference an html node? That's not what they're for 🤔 and it's coming from some plugin you use? B) why have a nbsp there?
A) why is the character reference an html node? That's not what they're for 🤔 and it's coming from some plugin you use?
is there a better way to do this?
B) why have a nbsp there?
for our use case, we want to suppress code-blocks in markdown when prefixed with 4 spaces, because authors sometimes use them to format / align the text to make it look nicer (the old add many spaces instead of using tab-stops problem).
but I just realized, that consecutive spaces are anyways collated to 1 space when rendered, so we can do this differently.
Where's the code where you inject those? Markdown let's you indent text as much as you want (but not on the first line of the paragraph)
You can also inject the actual nbsp character in text, instead of as a reference?
the source is a word-document that we convert to mdast. but I think for our use case, we can just collapse the spaces.
the following mdast:
was stringified with 0.5.3:
but with 0.6.5:
note the difference in github:
hello, world\ no code\ end.
hello, world\ no code\ end.