aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-05-24 11:48:09 +0200
committerJonas Smedegaard <dr@jones.dk>2025-05-24 11:48:09 +0200
commit77739f570ef39d9047232b6bb23cb59082480fa8 (patch)
treef82a79e5b3b4e7add11109a209882541512059a7
parentc8eef6faa84aef5245da05215821ae03ad6054eb (diff)
introduce AST only once
-rw-r--r--_filter.qmd2
-rw-r--r--_pandoc.qmd7
2 files changed, 2 insertions, 7 deletions
diff --git a/_filter.qmd b/_filter.qmd
index e3372f5..10fc93c 100644
--- a/_filter.qmd
+++ b/_filter.qmd
@@ -3,7 +3,7 @@
## Misparsing and then cleaning up {#sec-misparsing}
Pandoc offers two ways to implement a syntax extension to Markdown.
-Either an import extension or a filter for its Abtract Syntax Tree (AST).
+Either an import extension or a filter for its AST.
This project went with the latter approach,
which may seem like an odd choice at first.
diff --git a/_pandoc.qmd b/_pandoc.qmd
index cef54a3..d70968d 100644
--- a/_pandoc.qmd
+++ b/_pandoc.qmd
@@ -23,7 +23,7 @@ in the Quarto document publishing system.
----
reads a text document,
-parses its structural components into an Abstract Syntax Tree (AST),
+parses its structural components into an AST,
and serialises and writes back into a text document.
The Pandoc AST deliberately prioritises structural information
and is relaxed about visual information,
@@ -52,11 +52,6 @@ as well as equivalent subsets of other text markup languages
including HTML, LaTeX (and by extension PDF),
Office Open XML (as used by recent releases of Microsoft Word)
and OpenDocument (as used by OpenOffice and LibreOffice).
-Pandoc is extensible,
-supporting custom code loaded at runtime
-either for custom parsing or serialising,
-or for manipulating the intermediate internal content structure
-called Abstract Syntax Tree (AST).
Pandoc supports redefining input and output formats
and manipulating the internal document structure