Markwon icon indicating copy to clipboard operation
Markwon copied to clipboard

Remove mark from text

Open augustofavretto93 opened this issue 2 years ago • 1 comments

  • Markwon version: {REQUIRED}
  1. Please specify expected/actual behavior How I can remove markwon from one text.
  2. Please specify conditions/steps to reproduce (layout, code, markdown used, etc) text = Markwon version result = Markwon version

augustofavretto93 avatar Jun 02 '23 14:06 augustofavretto93

Hello @augustofavretto93 ,

just call .toString() on parsed markdown. It should be fine for basic markdown usage. But note that images, tables and some other elements would be missing.

if you need to extract all the text from markdown, ignoring markdown syntax, it is better to use TextContentRenderer from commonmark-java

noties avatar Jun 04 '23 08:06 noties