Options to allow the html tag which disabled by micromark-extension-gfm-tagfilter
package
#7
Closed
4 tasks done
Labels
Initial checklist
Problem
The
micromark-extension-gfm-tagfilter
package filter theiframe
tag which I really need.Use case: after copying iframe embedded code from youtube, I will paste it in my editor. Before pasting, I will use micromark to handle the plaintext in the clipboard, so I can convert markdown into html string and also keep the raw html string. Then I will convert the html string into html document object and then submit them into the editor to parse it.
Solution
Refactor the excape rules of
micromark-extension-gfm-tagfilter
package, then offer an optionkeepTags
to prevert filtered them.Alternatives
Offer options to disable
micromark-extension-gfm-tagfilter
package inmicromark-extension-gfm
. Then user can write their own tagfilter extension and also use the other gfm packages with import them separately.The text was updated successfully, but these errors were encountered: