rjeschke / txtmark

Yet another markdown processor for the JVM
Apache License 2.0
449 stars 100 forks source link

How to strip all markdown to get pure text ? #18

Closed albert-kam closed 9 years ago

albert-kam commented 10 years ago

Hello !

Is there a way where i can strip all the markdowns to get just pure text (not html) ? I'd like this feature to do a simple substringed-preview, the one with the "read more" link.

Thank you, Albert

rjeschke commented 10 years ago

It may be possible by using your own Decorator and just emit nothing, but I haven't tried this.

Currently different output formats are not supported, so if it not works using a custom decorator, one could still use the Java built-in SAX XML parser to strip all tags.

albert-kam commented 10 years ago

I'm going to try what you suggested. Thank you for your great product !