-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting the text only #145
Comments
Not so nice solution, but works |
@kuba-kubula doesn't seem to work actually. |
@samholmes sorry, repaired the code. |
@kuba-kubula is on the right track, but if you grab all the |
Solved with #129. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I could use marked and cheerio to first convert the markdown to HTML, then use cheerio's text() method to get the textual content out of the HTML. However, why couldn't marked save me this step?
I suggest that marked add a simple feature to be able to get just the text out of a markdown file. Why is this useful? If I wanted to display an excerpt of the body of a blog post and have that except contain only text without formatting, I would need this method. Simple.
Thanks for reading! Please consider this small feature.
The text was updated successfully, but these errors were encountered: