npub1ak…wtk0r on Nostr: I finally managed to do the thing I wanted with AsciiDoctor! The key bit, which I ...
I finally managed to do the thing I wanted with AsciiDoctor!
The key bit, which I found by reading another extension, was that there is a parse_content method on extensions. This will parse some AsciiDoc text and append it to an existing node (you can also create a new node as the parent and pull out the bits one at a time).
The choice to do work at parsing time was something I intentionally avoided in igk because it makes life much harder: the input format is no longer trivially isomorphic with the post-parsing AST, which increases the cognitive load on people writing extensions. This experience has 100% confirmed my belief that this was the right choice.
Published at
2026-10-02 13:43:50 UTCEvent JSON
{
"id": "2b782610c4bb4edb3d699ffee1c4ed9932f1d86aa278759e575e1b347b923936",
"pubkey": "ed98dd172c8fec81e65ac4d2b0687fe3ac855a12e939c028820df32002c896e7",
"created_at": 1790948630,
"kind": 1,
"tags": [
[
"proxy",
"https://infosec.exchange/users/david_chisnall/statuses/117371609466638076",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content": "I finally managed to do the thing I wanted with AsciiDoctor!\n\nThe key bit, which I found by reading another extension, was that there is a parse_content method on extensions. This will parse some AsciiDoc text and append it to an existing node (you can also create a new node as the parent and pull out the bits one at a time).\n\nThe choice to do work at parsing time was something I intentionally avoided in igk because it makes life much harder: the input format is no longer trivially isomorphic with the post-parsing AST, which increases the cognitive load on people writing extensions. This experience has 100% confirmed my belief that this was the right choice.",
"sig": "154231b9047b66e6b94169632e8acb72c89bd189f5cb2c2cd180ed86126548ed7d0208d4c17b6b5c4f1234d5c4b783771c58b264575c9a155b8e14c260cb3ddf"
}