Is there a simple way to get the raw text values from a markdown string using this library? #2615
Unanswered
jkwilliams375
asked this question in
Q&A
Replies: 1 comment
-
You provided the sample markdown but you didn't provide what the expected output should be. There are limitations to marked's "plain text". For example HTML is left as is so we don't pull the text out for marked so we wouldn't be able to help you extract that. You can use walk-tokens to traverse the tokens and pull out the information that you need. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have some code that takes in a .md file and converts the raw markdown string to HTML for display.
So I have access to strings of either markdown or HTML. Is there a way to get the plain text values from the markdown easily?
Some sample markdown below:
Beta Was this translation helpful? Give feedback.
All reactions