Added a pre-processor that allows me to add
,gemini=hidden to links I don't want to show up in the gmi document, and
,gemini=extend-to-eol for links I want to extend to the end of the line.
@clacke while I find markdown easier to write, I found it too limited for what I wanted to do with it for my blog, at least without resorting to including HTML in the source document, which would ruin legibility imho.
An example would be having collapsible blocks. I could include summary/details HTML tags in the (GFM) markdown document to achieve that, but that would defeat the purpose.
With #asciidoc I can do the following:
.Summary title for section
Expandable details for section block.
It's still not ideal, but I found it more in line with a legible plain text document.
(The primary planned use-case for this would be adding content-warnings to paragraphs/sections.)
@clacke https://mastodon.social/@FiXato/103881705825845116 has a couple more things that bugged me about markdown. .)
@clacke @FiXato I use asciidoc on a daily basis for my own purposes, and of course it's head and shoulders above Markdown as regards features. The problem we had on HPR was that our HTML notes get sent to archive.org (as the item description field) and their HTML filters are harsh (or were, I haven't checked lately) and tend to strip a lot of the "fancy" asciidoc stuff. So not my "sensibilities" more a pragmatic approach 😉
@clacke @perloid my "Now" page is generated with the asciidoctor-html5s backend, and while it could probably still be improved some, it's a lot more semantic than the default #asciidoctor output.
(and actually uses p tags for paragraphs)
If you're interested, I can also put the source asciidoc file online.
@DuncanLock yeah, looks like I have a whole bunch of uncommitted changes locally, including support for a config file and a bunch of replacement fixes; I'll see if I can clean those up and push them to the sourcehut repo today :)
@FiXato Fantastic - thanks!! 👍😀
@FiXato I got this working like this:
$ git clone https://git.sr.ht/~fixato/gemini-tools
$ cd gemini-tools/
$ python3 -m venv ~/venv/gemini-tools
$ source ~/venv/gemini-tools/bin/activate
$ python -m pip install -r ./requirements.txt
$ python -m pip install xdg python-slugify md2gemini
.. and it seems to work pretty well! Thanks!
@DuncanLock yeah, that sounds about right :)
Reminds me that I need to add those last two packages to the requirements.txt :)
Sorry I haven't been able to add the latest changes yet though; haven't really had the headspace to code much the past couple of days :/
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!