Oddbean new post about | logout
 From 0ec9e624e6172fb1c216d70ce148459a7ad385a0 Mon Sep 17 00:00:00 2001
Subject: [PATCH 0/5] Add "Pharos" AsciiDoc Parser

This proposal adds a custom extension to the Asciidoctor library that generates Nostr Knowledge Base events from an AsciiDoc document.  The `Asciidoctor` class is extended in the `Pharos` om an AsciiDoc document.  The `Pharos` class extends the `Asciidoctor` class with a custom tree parser that maps the relationships between the AsciiDoc sections and blocks.  Ind (kind 30040) and zettel (kind 30041) events are generated based on these relationships and on the content of the respective blocks and sections.  Asciidoctor generates unique IDs for each AsciiDoc block, and these unique IDs are used d tag identifiers.  Future developments will parse metadata such as author, edition, and publication date from the AsciiDoc document, and will add methods to support remapping the relationships between generated Nostr events.