docutils-ts
Version:
Port of the Python Docutils library to TypeScript
72 lines (71 loc) • 2.12 kB
JavaScript
export const directives = {
uwaga: 'attention',
'ostrożnie': 'caution',
'code (translation required)': 'code',
'niebezpieczeństwo': 'danger',
'błąd': 'error',
'wskazówka': 'hint',
'ważne': 'important',
przypis: 'note',
rada: 'tip',
'ostrzeżenie': 'warning',
'zauważenie': 'admonition',
ramka: 'sidebar',
temat: 'topic',
'blok-linii': 'line-block',
'sparsowany-literał': 'parsed-literal',
rubryka: 'rubric',
epigraf: 'epigraph',
highlights: 'highlights',
'pull-quote': 'pull-quote',
'złożony': 'compound',
kontener: 'container',
tabela: 'table',
'tabela-csv': 'csv-table',
'tabela-listowa': 'list-table',
meta: 'meta',
'math (translation required)': 'math',
obraz: 'image',
rycina: 'figure',
'dołącz': 'include',
surowe: 'raw',
'zastąp': 'replace',
unikod: 'unicode',
data: 'date',
klasa: 'class',
rola: 'role',
'rola-domyślna': 'default-role',
'tytuł': 'title',
'treść': 'contents',
sectnum: 'sectnum',
'numeracja-sekcji': 'sectnum',
'nagłówek': 'header',
stopka: 'footer',
'target-notes': 'target-notes',
'restructuredtext-test-directive': 'restructuredtext-test-directive',
};
export const roles = {
'skrót': 'abbreviation',
akronim: 'acronym',
'code (translation required)': 'code',
indeks: 'index',
'indeks-dolny': 'subscript',
'indeks-górny': 'superscript',
'referencja-tytuł': 'title-reference',
'referencja-pep': 'pep-reference',
'referencja-rfc': 'rfc-reference',
'podkreślenie': 'emphasis',
'wytłuszczenie': 'strong',
'dosłownie': 'literal',
'math (translation required)': 'math',
'referencja-nazwana': 'named-reference',
'referencja-anonimowa': 'anonymous-reference',
'referencja-przypis': 'footnote-reference',
'referencja-cytat': 'citation-reference',
'referencja-podstawienie': 'substitution-reference',
cel: 'target',
'referencja-uri': 'uri-reference',
uri: 'uri-reference',
url: 'uri-reference',
surowe: 'raw',
};