md2gemini
md2gemini copied to clipboard
File converter from Markdown to Gemini.
On running `python setup.py install --root=blah`, it will install `tests` as a root-level package into the destination too, and this does not seem like expected behaviour.
This is due to the hack in https://github.com/makeworld-the-better-one/md2gemini/commit/1bcd5e7834c80104fca3d531af61d6edb1425183 ```` ➤ printf '```\ntest\n\n\ntest2\n```\nokay' | md2gemini ``` test test2 ``` okay ➤ printf '```\ntest\n\n\ntest2\n```\nokay' ``` test test2 ``` okay ````
``` > Line with quote mark Line under quote mark ``` should become ``` > Line with quote mark > Line under quote mark ``` See lepture/mistune#244 for the issue...
this won't pass until #24 is resolved, but it's probably good to have on hand for when that gets implemented
input: ```markdown [](https://example.com) ``` current output: ``` => https://example.com => https://placekitten.com/200/300 example [IMG] ``` ideal output: ``` => https://example.com example => https://placekitten.com/200/300 example [IMG] ```
This PR adds an `images-only` option to the `--links` parameter. `--links images-only` behaves just like `--links off` except it *does* convert image links into gemtext link lines. I'm not a...
md2gemini removes any trailing newlines or whitespace in the source file from its output. The file `3.md` below ends with 3 `\n` characters. But the output of `md2gemini` has no...
I can appreciate the challenges of converting hyperlinks in Markdown to gemtext, and I think the `--links` options cover most use-cases. However image links are different. They are also semantically...