~kota

nz

https://kota.nz

Trackers

~kota/gemgen

Last active 1 year, 7 months ago

~kota/notabar

Last active 1 year, 8 months ago

~kota/nilsu.org

Last active 2 years ago

~kota/pcf

Last active 2 years ago

~kota/metweather

Last active 2 years ago

~kota/modget

Last active 2 years ago

~kota/useless

Last active 3 years ago

~kota/mergehosts

Last active 4 years ago

~kota/dprint

Last active 4 years ago

#6 markdown tasklists 1 year, 7 months ago

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].

#11 option for <hr> 1 year, 7 months ago

Comment by ~kota on ~kota/gemgen

Implemented in v0.5.0 of gemgen. The new option uses the -r, --horizontal-rule flag.

REPORTED RESOLVED FIXED

#6 markdown tasklists 1 year, 7 months ago

Comment 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.

#6 markdown tasklists 1 year, 7 months ago

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.

#7 man page not rendering backslash 1 year, 8 months ago

Comment by ~kota on ~kota/notabar

The backslash escaping is slighly weird in scdoc, but I figured it out a while ago.

REPORTED RESOLVED FIXED

#11 option for <hr> 1 year, 10 months ago

Comment 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.

#15 link regex 1 year, 10 months ago

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.

#13 templating 1 year, 11 months ago

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).

#13 templating 1 year, 11 months ago

Comment by ~kota on ~kota/gemgen

Added a basic template implementation on the templates branch. Currently, only a {{.Content}} action is implemented.

#14 option to render links before next heading 2 years ago

Ticket created by ~kota on ~kota/gemgen

Similar to the idea of putting links at the end of the current paragraph or even at the end of the whole document it would be nice to have "middleground" of placing them before the next "section".