gomarkdown / markdown

markdown parser and HTML renderer for Go
Other
1.38k stars 172 forks source link

Accessing title without prefix 'Text' #226

Closed holgerson97 closed 2 years ago

holgerson97 commented 2 years ago

Is there any solution to access only the actual content from nodes of type heading?

This is what I get if I stringify the Children of a heading container: Text 'Terraform Module Name'

I would like to only get: Terraform Module Name

miekg commented 2 years ago

you need to check the Container(s) inside the Heading node and extra the things you're interested in from there.