docutils-ts
Version:
Port of the Python Docutils library to TypeScript
71 lines (70 loc) • 2.15 kB
JavaScript
export const directives = {
attenzione: 'attention',
cautela: 'caution',
'code (translation required)': 'code',
pericolo: 'danger',
errore: 'error',
suggerimento: 'hint',
importante: 'important',
nota: 'note',
consiglio: 'tip',
avvertenza: 'warning',
avviso: 'admonition',
riquadro: 'sidebar',
argomento: 'topic',
'blocco-di-righe': 'line-block',
'blocco-interpretato': 'parsed-literal',
rubrica: 'rubric',
epigrafe: 'epigraph',
'punti-salienti': 'highlights',
'estratto-evidenziato': 'pull-quote',
composito: 'compound',
'container (translation required)': 'container',
tabella: 'table',
'tabella-csv': 'csv-table',
'tabella-elenco': 'list-table',
meta: 'meta',
'math (translation required)': 'math',
immagine: 'image',
figura: 'figure',
includi: 'include',
grezzo: 'raw',
sostituisci: 'replace',
unicode: 'unicode',
data: 'date',
classe: 'class',
ruolo: 'role',
'ruolo-predefinito': 'default-role',
titolo: 'title',
indice: 'contents',
contenuti: 'contents',
seznum: 'sectnum',
'sezioni-autonumerate': 'sectnum',
'annota-riferimenti-esterni': 'target-notes',
intestazione: 'header',
'piede-pagina': 'footer',
'restructuredtext-test-directive': 'restructuredtext-test-directive',
};
export const roles = {
abbreviazione: 'abbreviation',
acronimo: 'acronym',
'code (translation required)': 'code',
indice: 'index',
deponente: 'subscript',
esponente: 'superscript',
'riferimento-titolo': 'title-reference',
'riferimento-pep': 'pep-reference',
'riferimento-rfc': 'rfc-reference',
enfasi: 'emphasis',
forte: 'strong',
letterale: 'literal',
'math (translation required)': 'math',
'riferimento-con-nome': 'named-reference',
'riferimento-anonimo': 'anonymous-reference',
'riferimento-nota': 'footnote-reference',
'riferimento-citazione': 'citation-reference',
'riferimento-sostituzione': 'substitution-reference',
destinazione: 'target',
'riferimento-uri': 'uri-reference',
grezzo: 'raw',
};