~mbuechse/gemtext-to-html

416e87bfa2d352027c3e58bd8f105ca32ef49e30 — Matthias B├╝chse 2 years ago 5ed55f4
Update documentation
2 files changed, 3 insertions(+), 9 deletions(-)

M README.md
R convert_gemtext_file.py => convert_dir.py
M README.md => README.md +3 -9
@@ 1,15 1,9 @@
# gemtext-html-converter

A Python script that converts text/gemini into HTML.

A simple script that converts gemtext to HTML. Takes two arguments from stdin -
args[1](gmi) is an input gemtext file and args[2](html) is an output HTML file. 
The output file consists of only the lines of gemtext in the input file converted
to their HTML equivalents: h1, h2, h3, p, a, blockquote, li, and 
pre tags. It does not include any boilerplate such as a default head
or wrapping html or body tags. I wrote it mainly so I could insert converted
gemtext into a webpage I already started using copy-paste or a templating system
like Jinja. Extend it as you see fit.
A simple script that converts gemtext to HTML. It will convert any gmi file in a given path into HTML. Local links will be rewritten to the corresponding HTML file.

You can run it like so:

python3 path-to-input-file.gmi path-to-output-file.html
    python3 convert_dir.py <PATH>

R convert_gemtext_file.py => convert_dir.py +0 -0