New Version of gmi2html!
=> I've updated my text/gemini -> text/html conversion tool.
There are more scripts out there with the same name, and I apologize for any confusion that might cause.
After quite a bit of testing and fruitful discussions with Solène I've finally come around to implementing some changes and features.
New in this release:
- There is now an option to inline image links. If a linked file ends in .png, .jpg, .jpeg, .gif, .webp, or .svg (case insensitive) and the option '--inline-img' is provided as an tag instead of an tag. Link text will be added as the alt= attribute.
- "Usage" now provided on '-h' or '--help'.
- Input is sanitized: < and > are replaced with < and > respectively, and & becomes &.
- Input sanitation goes even further: any text that will end up in html tag attributes (which the script wraps in single quotes) is stripped of ' and , removing the risk of extra attributes being injected.
No dependencies have been introduced; you still only need the python3 core installation to run.
Enjoy! And let me know if you find bugs or have feature suggestions 😊️
-- CC0 ew0k, 2021-03-27
Proxy Information
- Original URL
- gemini://warmedal.se/~bjorn/posts/new-version-of-gmi2html.gmi
- Status Code
- Success (20)
- Meta
text/gemini; lang=en
- Capsule Response Time
- 113.293809 milliseconds
- Gemini-to-HTML Time
- 0.527427 milliseconds
This content has been proxied by September (ba2dc).