summaryrefslogtreecommitdiff
path: root/tex/context/base/back-exp-html.lua
blob: e284c42dd3ff9ca1e356cdc95ae040f87e7642bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
return {
    name = "html export",
    version = "1.00",
    comment = "Experimental feature.",
    author = "Hans Hagen",
    copyright = "ConTeXt development team",
    suffix = "html",
    remapping = {
        {
            pattern = "tabulate",
            element = "table",
            class   = "tabulate",
        },
        {
            pattern = "tabulaterow",
            element = "tr",
            class   = "tabulate.tr",
        },
        {
            pattern = "tabulatecell",
            element = "td",
            class   = "tabulate.td",
            extras  = {
                align = {
                    flushleft  = "tabulate.td.left",
                    flushright = "tabulate.td.right",
                    middle     = "tabulate.td.center",
                }
            }
        },
        {
            pattern = "break",
            element = "br",
        },
        {
            pattern = "section",
            element = "div",
        },
        {
            pattern = "verbatimblock",
            element = "pre",
        },
        {
            pattern = "verbatimlines|verbatimline",
            element = "div",
        },
        {
            pattern = "!(div|table|td|tr|pre)",
            element = "div",
        },
    }
}