docutils-ts
Version:
Port of the Python Docutils library to TypeScript
79 lines (78 loc) • 2.13 kB
JavaScript
export const directives = {
warnhinweis: 'admonition',
achtung: 'attention',
vorsicht: 'caution',
code: 'code',
gefahr: 'danger',
fehler: 'error',
hinweis: 'hint',
wichtig: 'important',
notiz: 'note',
tipp: 'tip',
warnung: 'warning',
kasten: 'sidebar',
seitenkasten: 'sidebar',
seitenleiste: 'sidebar',
thema: 'topic',
zeilenblock: 'line-block',
'parsed-literal (translation required)': 'parsed-literal',
rubrik: 'rubric',
epigraph: 'epigraph',
highlights: 'highlights',
'pull-quote': 'pull-quote',
seitenansprache: 'pull-quote',
zusammengesetzt: 'compound',
verbund: 'compound',
container: 'container',
tabelle: 'table',
'csv-tabelle': 'csv-table',
listentabelle: 'list-table',
mathe: 'math',
formel: 'math',
meta: 'meta',
bild: 'image',
abbildung: 'figure',
'unverändert': 'raw',
roh: 'raw',
'einfügen': 'include',
ersetzung: 'replace',
ersetzen: 'replace',
ersetze: 'replace',
unicode: 'unicode',
datum: 'date',
klasse: 'class',
rolle: 'role',
standardrolle: 'default-role',
titel: 'title',
inhalt: 'contents',
kapitelnummerierung: 'sectnum',
abschnittsnummerierung: 'sectnum',
'linkziel-fußnoten': 'target-notes',
kopfzeilen: 'header',
'fußzeilen': 'footer',
};
export const roles = {
'abkürzung': 'abbreviation',
akronym: 'acronym',
code: 'code',
index: 'index',
tiefgestellt: 'subscript',
hochgestellt: 'superscript',
'titel-referenz': 'title-reference',
'pep-referenz': 'pep-reference',
'rfc-referenz': 'rfc-reference',
betonung: 'emphasis',
betont: 'emphasis',
fett: 'strong',
'wörtlich': 'literal',
mathe: 'math',
'benannte-referenz': 'named-reference',
'unbenannte-referenz': 'anonymous-reference',
'fußnoten-referenz': 'footnote-reference',
'zitat-referenz': 'citation-reference',
'ersetzungs-referenz': 'substitution-reference',
ziel: 'target',
'uri-referenz': 'uri-reference',
'unverändert': 'raw',
roh: 'raw',
};