Closed rhysd closed 2 hours ago
So the meaning of the Node.Text
has changed, am I correct?
Yes. As I've wrote there's no 1 'correct' text representation of most nodes. All Node.Text methods are deprecated now. If you applies some linter, it will claim that Node.Text is deprecated. I recommend you to update your code to avoid Node.Text. All Node.Text can be replaced with other public functions or properties.
Thank you for the clarification. Yes, I understood that the method had been deprecated and I will stop using it as soon as possible. I just wanted a clarification with this comment :)
goldmark has https://github.com/yuin/goldmark/discussions in github. You should post only issues here. Feature requests and questions should be posted at discussions.
<
>
, Table, etc) are not part of CommonMark spec. You should confirm your output is different from other official renderers correspond with an extension.Please answer the following before submitting your issue:
"foo"
"<code>foo</code>"
, which means that the<code>
and</code>
are plain texts. But actually they should be part of HTML elements.Node.Text
is not a functionality the online demo provides.This is a regression from v1.7.4. With goldmark v1.7.4, the above code prints
"foo"
as expected.