yuin / goldmark

:trophy: A markdown parser written in Go. Easy to extend, standard(CommonMark) compliant, well structured.
MIT License
3.68k stars 255 forks source link

Raw text/position information about block nodes? #252

Closed wdscxsj closed 3 years ago

wdscxsj commented 3 years ago

Node.Text() and Node.Lines() return the text and position information about block nodes, but only for the text part, somewhat like Node.textContent in the DOM API. Is is possible to get the "raw" information about block nodes, including their related markups? That would be something like Element.outerHTML in DOM. Thanks!