nz
Comment by ~kota on ~kota/gemgen
All was going well, but for some reason the new
renderTaskCheckBox
method isn't getting the correct config applied. Going to require more investigating to see why the config isn't applying. Possibly a bug in goldmark. I've also thought about it a bit more and I think 🔲 and ☑️ should be the defaults for gemgen in order to promote accessibility. Those symbols will have a more more sensical pronunciation by screenreaders than something like[x]
.
Comment by ~kota on ~kota/gemgen
Implemented in v0.5.0 of gemgen. The new option uses the
-r, --horizontal-rule
flag.
REPORTED
RESOLVED FIXEDComment by ~kota on ~kota/gemgen
Had some time to look at this some more this morning. It turns out the current version of goldmark-gemtext (and thus gemgen) will render markdown task lists back exactly as written. Meaning if you write the following markdown:
- [ ] foo - [x] bar
it becomes this gemtext:
* [ ] foo * [x] bar
Only the list markers are changed. Everything after it is rendered as it was written. There is one weird quirk, if the markdown source isn't consistent about lowercase/capital
x
the output also will be inconsistent:- [X] foo - [x] bar stays mixed case * [X] foo * [x] bar
I still think it would be nicer to have (at least optionally) the emoji checkboxes. I wrote support for it in goldmark-gemtext, but I still need to update the tests and figure out a good cli flag for gemgen (including being able to use non-default emojis such as ☑ for example). I'm leaning towards keeping the ascii checkboxes as the default output. It seems more in line with how people write gemtext in the wild.
Comment by ~kota on ~kota/gemgen
The list idea looks good and is pretty similar to markdown. I imagine people would do something like that in handwritten gemtext. Also I hadn't thought of using emojis, but thats a great idea! The pre blocks feel a bit unnecessary to me, but it could also be an option if people want that.
Comment by ~kota on ~kota/notabar
The backslash escaping is slighly weird in scdoc, but I figured it out a while ago.
REPORTED
RESOLVED FIXEDComment by ~kota on ~kota/gemgen
Added to goldmark-gemtext. Still needs implemented in gemgen, the default for line breaks will also change so this will require another version bump.
Ticket created by ~kota on ~kota/gemgen
Often times you want to modify some or all links in your text to replace the file extension or similar. I'd like to add options for using regex to modify file extensions on the final output links.
Comment by ~kota on ~kota/gemgen
Added {{.Filename}} {{.Title}} and {{.LastEdit}}, but I still might add actions for backlinks, file size/word count, and yaml metadata processing in the future. (Especially if someone actually needs these features).