I try to create a Lua filter to preserve videos while converting from HTML to GitHub Flavored Markdown (GFM). #11356
cs5vsm99xq-wq
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I try to create a Lua filter to preserve videos while converting from HTML to GitHub Flavored Markdown (GFM).
Input HTML:
Output Markdown:
As you can see, the problem is that it preserves
<source>, whereas it is also necessary to preserve<video>.Changing
return starts_with('<source', el.text)toreturn starts_with('<video', el.text)doesn't solve the problem, and results toOriginally posted by @johnmapeson in #9658
Beta Was this translation helpful? Give feedback.
All reactions