docutils-ts
Version:
Port of the Python Docutils library to TypeScript
99 lines (98 loc) • 2.98 kB
JavaScript
export const directives = {
'atenció': 'attention',
compte: 'caution',
perill: 'danger',
error: 'error',
suggeriment: 'hint',
important: 'important',
nota: 'note',
consell: 'tip',
'avís': 'warning',
advertiment: 'admonition',
'nota-al-marge': 'sidebar',
'nota-marge': 'sidebar',
tema: 'topic',
'bloc-de-línies': 'line-block',
'bloc-línies': 'line-block',
'literal-analitzat': 'parsed-literal',
codi: 'code',
'bloc-de-codi': 'code',
'matemàtiques': 'math',
'rúbrica': 'rubric',
'epígraf': 'epigraph',
sumari: 'highlights',
'cita-destacada': 'pull-quote',
compost: 'compound',
contenidor: 'container',
taula: 'table',
'taula-csv': 'csv-table',
'taula-llista': 'list-table',
meta: 'meta',
imatge: 'image',
figura: 'figure',
inclou: 'include',
incloure: 'include',
cru: 'raw',
'reemplaça': 'replace',
'reemplaçar': 'replace',
unicode: 'unicode',
data: 'date',
classe: 'class',
rol: 'role',
'rol-predeterminat': 'default-role',
'títol': 'title',
contingut: 'contents',
numsec: 'sectnum',
'numeració-de-seccions': 'sectnum',
'numeració-seccions': 'sectnum',
'capçalera': 'header',
'peu-de-pàgina': 'footer',
'peu-pàgina': 'footer',
'notes-amb-destinacions': 'target-notes',
'notes-destinacions': 'target-notes',
'directiva-de-prova-de-restructuredtext': 'restructuredtext-test-directive',
};
export const roles = {
abreviatura: 'abbreviation',
'abreviació': 'abbreviation',
abrev: 'abbreviation',
ab: 'abbreviation',
'acrònim': 'acronym',
ac: 'acronym',
codi: 'code',
'èmfasi': 'emphasis',
literal: 'literal',
'matemàtiques': 'math',
'referència-a-pep': 'pep-reference',
'referència-pep': 'pep-reference',
pep: 'pep-reference',
'referència-a-rfc': 'rfc-reference',
'referència-rfc': 'rfc-reference',
rfc: 'rfc-reference',
destacat: 'strong',
'subíndex': 'subscript',
sub: 'subscript',
'superíndex': 'superscript',
sup: 'superscript',
'referència-a-títol': 'title-reference',
'referència-títol': 'title-reference',
'títol': 'title-reference',
t: 'title-reference',
cru: 'raw',
'índex': 'index',
i: 'index',
'referència-anònima': 'anonymous-reference',
'referència-a-cita': 'citation-reference',
'referència-cita': 'citation-reference',
'referència-a-nota-al-peu': 'footnote-reference',
'referència-nota-al-peu': 'footnote-reference',
'referència-amb-nom': 'named-reference',
'referència-nom': 'named-reference',
'referència-a-substitució': 'substitution-reference',
'referència-substitució': 'substitution-reference',
'referència-a-uri': 'uri-reference',
'referència-uri': 'uri-reference',
uri: 'uri-reference',
url: 'uri-reference',
'destinació': 'target',
};