I've moved my blog to Djot #94
Replies: 3 comments 2 replies
-
For reference, Textile requires wrapper brackets for intra-word bold and italics, e.g. In Djot, this would be e.g.
|
Beta Was this translation helpful? Give feedback.
-
Living dangerously! Well, this will be a good way to find potential issues. I think that with the pandoc djot reader, you can be confident that you'll be able to export your content to another format when you want to -- which should help give confidence to continue the experiment. Feel free to raise any of these points as separate issues; that makes them easier to track. I think that requiring |
Beta Was this translation helpful? Give feedback.
-
I remembered why I did not require this. The problem lies in determining which |
Beta Was this translation helpful? Give feedback.
-
So yeah, I've moved my blog at https://matklad.github.io from AsciiDoctor to Djot (and from Jekyll to hand-written Deno build script):
matklad/matklad.github.io@58b876f
I will probably regret doing this before djot hit official 1.0 and stability promise, but, in my defense, it was fun :-)
Things that went well:
C++
is spelled{cpp}
because double plus has semantic meaning. Curtly quotes are just ❤️ , in asciidoctor those need to be spelled explicitly as"`my quote`"
and that's super annoyingkbd:[Ctrl+Alt+Del]
and menu itemsmenu:Edit[Transform > Rotate]
. It was very easy to replicate that with djot's attributes. Some examples in this post.Things that went less well:
AsciiDoctor allows to add titles/captions to everything, which I used a lot (eg, bullet lists with titles). djot doesn't have syntax for this, so I used ad-hoc
{cap="Title of my list"}
attribute sytnax. The problem with that is that there's no inlines without recursive djot invocations which I was too lazy to implement.Inlines in verbatim blocks: with asciidoctor, it's easy to bloden/highlight parts of code blocks. With djot, I think that'll be easy to do by doing a recursive djot invocation, but I didn't do that because djot doesn't have a CLI flag to parse only inlines, and because I am too lazy :)
"block" images are wrapped in
p
, so I had to write custom code to pattern-match on single-child ps to turn them into figures.Hierarchical sections in the AST #86 headers are flat, so, if you want to create a nested
sections
structure you have too write some custom code, which I was too lazy to doItalics
_
got in a way a couple of times requiring escapes:file_names_with_undersco.rs
(eg, as link texts)1_000_000
Tables. I think I only have two tables, and both are actually just examples of asciidoctor syntax, but even in the small wyswyg pipe tables feels inferior to "cell-per-line" tables.
definition syntax feels a bit cluncy, as it always requires a blank line and an indent:
asciidoctor allows
term:: def
which is quite a bit more succinctBeta Was this translation helpful? Give feedback.
All reactions