Commit 9b799fe1f4
Unsigned
Layout: unified · split
src/audit.rs +5
| @@ -77,6 +77,11 @@ const KNOWN_KEYWORDS: &[&str] = &[ | ||
| 77 | 77 | "TITLE", "AUTHOR", "DATE", "EMAIL", "LANGUAGE", "OPTIONS", "FILETAGS", "DESCRIPTION", |
| 78 | 78 | "KEYWORDS", "CAPTION", "NAME", "ATTR_HTML", "RESULTS", "TBLFM", "INCLUDE", "TODO", |
| 79 | 79 | "STARTUP", "SUBTITLE", "SETUPFILE", "MACRO", "PROPERTY", "HTML_HEAD", "EXCLUDE_TAGS", |
| 80 | // orgo's own keywords, each read by name: `SLUG` names the output file | |
| 81 | // (`util::output_path`), `DRAFT` decides whether the page publishes at all | |
| 82 | // (`util::is_draft`), and `TEMPLATE` picks the template (`config::page_template`). | |
| 83 | // Leaving them out reported the corpus's most-used keyword as unrecognized. | |
| 84 | "SLUG", "DRAFT", "TEMPLATE", | |
| 80 | 85 | ]; |
| 81 | 86 | /// Blocks with dedicated handling. Any *other* name renders as a special block — a div |
| 82 | 87 | /// with that name holding parsed org — so an unlisted block is a note about what a corpus |