You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm using flexmark-html2md-converter to convert Confluence HTML pages to markdown.
The elements in the html are already handled by the default conversion. e.g. <div>, <img>, <span>, ...
But for some cases, the class attributes describe more precisely what the elements are.
e.g.
<div class='confluence-information-macro'> is an admonition
<img class='emoticon'> is an emoji
So I wrote an HtmlNodeRenderer (inner class of an HtmlConverterExtension) for <div> but it handles all of them, I didn't find a way to specialize it.
Describe the solution you'd like
It would be nice to be more specific in the HtmlNodeRendererHandler to handle tagName and attributes (class or others).
Like that I can have one extension by type (tag + attribute(s)) and not one by tag.
Is your feature request related to a problem? Please describe.
I'm using flexmark-html2md-converter to convert Confluence HTML pages to markdown.
The elements in the html are already handled by the default conversion. e.g.
<div>
,<img>
,<span>
, ...But for some cases, the class attributes describe more precisely what the elements are.
e.g.
<div class='confluence-information-macro'>
is an admonition<img class='emoticon'>
is an emojiSo I wrote an HtmlNodeRenderer (inner class of an HtmlConverterExtension) for
<div>
but it handles all of them, I didn't find a way to specialize it.Describe the solution you'd like
It would be nice to be more specific in the
HtmlNodeRendererHandler
to handle tagName and attributes (class or others).Like that I can have one extension by type (tag + attribute(s)) and not one by tag.
actual:
desired:
Ideally, the attributesMap should accept basic expressions (and, or, not,...)
Describe alternatives you've considered
Write one HtmlNodeRenderer by tag
Additional context
none
The text was updated successfully, but these errors were encountered: