noties / Markwon

Android markdown library (no WebView)
https://noties.io/Markwon/
Apache License 2.0
2.68k stars 298 forks source link

Parsing html <code> and <codeblock> tag in Markwon Android #398

Closed Sotatek-MinhPham closed 1 year ago

Sotatek-MinhPham commented 2 years ago

I'm using markwon to extract the html tag , but it does show as I experienced while using Markdown syntax code. This is the html code I try to read <p><code>code here</code></p> Do you guys have any idea about configuration of Markwon builder to parse this tag For other tags I tried, it run properly `

heading1

heading2

heading3

heading4

heading5
heading1

asdasdasdasda

asdasdasdasdasd

bold italic

https://google.com/

asdsd

asdasd

strike through

content

strike through in quote

bold in quote

italic in quote

bold italic in quote

` @noties : sorry for direct mention you
noties commented 1 year ago

Hello @Sotatek-MinhPham ,

you can create a custom TagHandler for the <code> tag. For example - HtmlRandomCharSize shows how to use one.