diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2013-09-02 02:07:30 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2013-09-02 02:07:30 -0600 |
| commit | c19d33214ff1cff3b6367eca3c6ae35fe583aa9e (patch) | |
| tree | b04c4dae13f9502cc3674ae3ef9f1770274d4eda /compat | |
| parent | 26d990e78bd1d597d1d05077e14f95354dab3180 (diff) | |
fix fenced code compatibility entry
Diffstat (limited to 'compat')
| -rw-r--r-- | compat/asciidoc.conf | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/compat/asciidoc.conf b/compat/asciidoc.conf index 4ae8903e..98f20200 100644 --- a/compat/asciidoc.conf +++ b/compat/asciidoc.conf @@ -31,13 +31,21 @@ sect5=^(======|######) +(?P<title>[\S].*?)(?: +\1)?$ # enables fenced code blocks # FIXME I haven't sorted out yet how to do syntax highlighting [blockdef-fenced-code] -delimiter=^```\w*$ -template::[blockdef-listing] +delimiter=^```(?:\w+(?:,numbered)?)?$ +ifdef::language[] +style=source +template::[source-filter-style] +endif::language[] +ifndef::language[] +template=listingblock +subs=verbatim +posattrs=style +endif::language[] # enables blockquotes to be defined using two double quotes [blockdef-air-quote] -delimiter=^""$ template::[blockdef-quote] +delimiter=^""$ # markdown-style blockquote (paragraph only) # FIXME does not strip leading > on subsequent lines |
