pandoc/test
Lucas Viana 4be41e3bb5 Org reader: support counter cookies in lists
This adds support for counter cookies in org lists. Such cookies are
used to override the item counter in ordered lists. In org it is
possible to set the counter at any list item, but since Pandoc AST does
not support this, we restrict the usage to setting an offset for the
entire ordered list, by using the cookie in the first list item.

Note that even though unordered lists do not have counters, Org Mode
still parses such cookies in unordered lists and suppresses them in the
output, so we do the same.

Also, even though org-list-allow-alphabetical is disabled in Emacs by
default, for some reason alphabetical cookies are always parsed and used
in Org Mode regardlessly of whether this option is enabled or the list
style is decimal, so we do the same.

E.g.
 2. test
 3. test
Is parsed as an ordered list starting at 1, as before. This also
conforms to Org Mode behaviour.

 1. [@2] test
 2. test
Is now parsed as an ordered list starting at 2, so that it conforms to
Org Mode behaviour.

Note that when parsing
 1. [@2] test
 2. [@9] test
the second cookie is silenced and the entire list starts at 2. This is
because the current Pandoc AST does not support expressing a change in
the counter at a specific item.
2022-01-06 19:33:13 +01:00
..
command AsciiDoc writer: improve detection of intraword emphasis. 2022-01-05 14:48:19 -08:00
docx Docx reader: don't let first line indents trigger block quotes. 2021-11-02 14:04:38 -07:00
epub Fix more epub files in epub reader tests. 2021-10-24 15:24:59 -07:00
fb2 Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
ipynb Add text wrapping to HTML output. 2021-12-22 09:45:02 -08:00
lua Lua: add pandoc.template module 2022-01-04 11:55:59 -08:00
media
odt Odt: Add list-header 2022-01-02 15:05:09 -08:00
pptx Change reference.pptx to use 16:9 aspect ratio. 2022-01-02 14:58:55 -08:00
rtf Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
tables Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
Tests Org reader: support counter cookies in lists 2022-01-06 19:33:13 +01:00
bodybg.gif
creole-reader.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
creole-reader.txt
docbook-chapter.docbook docbook reader: fix nesting of chapters and sections (#5864) 2019-10-30 08:51:33 -07:00
docbook-chapter.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
docbook-reader.docbook DocBook reader: be sensitive to spacing="compact" in lists. 2022-01-03 14:19:53 -08:00
docbook-reader.native DocBook reader: be sensitive to spacing="compact" in lists. 2022-01-03 14:19:53 -08:00
docbook-xref.docbook
docbook-xref.native Add <titleabbr> support to DocBook reader 2021-11-08 07:30:20 -08:00
dokuwiki_external_images.dokuwiki
dokuwiki_external_images.native
dokuwiki_inline_formatting.dokuwiki
dokuwiki_inline_formatting.native
dokuwiki_multiblock_table.dokuwiki
dokuwiki_multiblock_table.native Adapt to the removal of the RowSpan, ColSpan, RowHeadColumns accessors 2020-04-15 23:03:22 -04:00
haddock-reader.haddock
haddock-reader.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
html-reader.html HTML reader tests: improve test coverage of new features 2020-11-27 21:21:25 +01:00
html-reader.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
insert
jats-reader.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
jats-reader.xml Add new unexported module T.P.XMLParser. 2021-02-10 22:04:11 -08:00
jira-reader.jira Add jira reader (#5913) 2019-12-17 21:07:46 -08:00
jira-reader.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
lalune.jpg
latex-reader.latex
latex-reader.native LaTeX reader: add 'uri' class when parsing \url. 2021-11-07 21:08:20 -08:00
lhs-test-markdown.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
lhs-test.fragment.html+lhs
lhs-test.html document-css: reset overflow-wrap on code blocks 2021-07-05 08:57:23 -07:00
lhs-test.html+lhs document-css: reset overflow-wrap on code blocks 2021-07-05 08:57:23 -07:00
lhs-test.latex Revert "LaTeX template: move title, author, date up to top of preamble." 2021-07-03 15:34:42 -07:00
lhs-test.latex+lhs Revert "LaTeX template: move title, author, date up to top of preamble." 2021-07-03 15:34:42 -07:00
lhs-test.markdown
lhs-test.markdown+lhs
lhs-test.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
lhs-test.rst
lhs-test.rst+lhs
man-reader.man
man-reader.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
markdown-citations.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
markdown-citations.txt
markdown-reader-more.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
markdown-reader-more.txt
mediawiki-reader.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
mediawiki-reader.wiki
movie.jpg
opml-reader.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
opml-reader.opml
org-select-tags.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
org-select-tags.org Replace org #+KEYWORDS with #+keywords 2020-11-18 14:48:56 +01:00
pipe-tables.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
pipe-tables.txt
rst-reader.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
rst-reader.rst Add highlight directive to the rST reader (#6140) 2020-02-13 10:27:34 -08:00
s5-basic.html Add text wrapping to HTML output. 2021-12-22 09:45:02 -08:00
s5-fancy.html Add text wrapping to HTML output. 2021-12-22 09:45:02 -08:00
s5-fragment.html Add text wrapping to HTML output. 2021-12-22 09:45:02 -08:00
s5-inserts.html Add text wrapping to HTML output. 2021-12-22 09:45:02 -08:00
s5.native
tables-rstsubset.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
tables.asciidoc
tables.asciidoctor
tables.context
tables.custom Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.docbook4
tables.docbook5
tables.dokuwiki Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.fb2 Use the new builders, modify readers to preserve empty headers 2020-04-15 23:03:22 -04:00
tables.haddock Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
tables.html4
tables.html5 Add text wrapping to HTML output. 2021-12-22 09:45:02 -08:00
tables.icml
tables.jats_archiving JATS writer: support advanced table features 2020-11-19 22:09:52 +01:00
tables.jats_articleauthoring JATS writer: support advanced table features 2020-11-19 22:09:52 +01:00
tables.jats_publishing JATS writer: support advanced table features 2020-11-19 22:09:52 +01:00
tables.jira Jira writer: fix output of table headers 2020-01-07 22:11:51 +01:00
tables.latex LaTeX table writer: Increase column width precision (#7466) 2021-08-03 15:34:39 -06:00
tables.man
tables.markdown Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
tables.markua Add a writer for Markua 0.10 (#7729) 2021-12-19 12:10:41 -08:00
tables.mediawiki Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.ms Ms writer: handle tables with multiple paragraphs. 2021-05-20 17:12:38 -07:00
tables.muse Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
tables.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
tables.opendocument Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
tables.org Replace org #+KEYWORDS with #+keywords 2020-11-18 14:48:56 +01:00
tables.plain Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
tables.rst Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
tables.rtf Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.tei Use the new builders, modify readers to preserve empty headers 2020-04-15 23:03:22 -04:00
tables.texinfo
tables.textile Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.txt Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.xwiki Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.zimwiki Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
test-pandoc.hs Add a writer for Markua 0.10 (#7729) 2021-12-19 12:10:41 -08:00
testsuite.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
testsuite.txt
textile-reader.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
textile-reader.textile Fix typos in comments, doc strings, error messages, and tests 2020-10-14 22:26:51 +02:00
tikiwiki-reader.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
tikiwiki-reader.tikiwiki
twiki-reader.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
twiki-reader.twiki
txt2tags.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
txt2tags.t2t Fix/update URLs and use HTTP**S** where possible (#7122) 2021-02-26 17:56:04 -08:00
vimwiki-reader.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
vimwiki-reader.wiki Vimwiki reader: Add nested syntax highlighting (#6257) 2020-04-06 16:41:28 -07:00
writer.asciidoc Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
writer.asciidoctor Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
writer.context ConTeXt template: make title appear in PDF title bar. 2022-01-02 22:04:55 -08:00
writer.custom Various sample.lua editorial fixes. (#7493) 2021-08-12 10:16:34 -07:00
writer.docbook4 Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
writer.docbook5 Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
writer.dokuwiki DokuWiki writer: translate language names for code elements... 2020-11-04 22:38:53 -08:00
writer.fb2
writer.haddock Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
writer.html4 HTML writer: make line breaks more consistent. 2021-12-22 09:45:02 -08:00
writer.html5 HTML writer: make line breaks more consistent. 2021-12-22 09:45:02 -08:00
writer.icml ICML writer: fix image bounding box for custom widths/heights 2020-12-12 14:49:11 +01:00
writer.jats_archiving Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
writer.jats_articleauthoring Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
writer.jats_publishing Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
writer.jira Use jira-wiki-markup 1.3.4 2021-03-13 14:53:58 +01:00
writer.latex Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
writer.man Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
writer.markdown Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
writer.markua Add a writer for Markua 0.10 (#7729) 2021-12-19 12:10:41 -08:00
writer.mediawiki MediaWiki writer: fix code for generating spans for header IDs. 2021-11-19 09:05:19 -08:00
writer.ms Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
writer.muse Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
writer.native Switch from pretty-simple to pretty-show for native output. 2021-09-28 21:17:53 -07:00
writer.opendocument OpenDocument writer: fix vertical align bug with display math. 2021-12-28 16:06:25 -08:00
writer.opml Improve Markdown writer escaping. 2021-12-03 17:52:47 -08:00
writer.org Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
writer.plain Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
writer.rst Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
writer.rtf RTF writer: emit \outlinelevel for section headings. 2021-08-04 16:37:20 -06:00
writer.tei Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
writer.texinfo Use pretty-simple to format native output. 2021-09-21 12:37:42 -07:00
writer.textile Changes to build with new doctemplates/doclayout. 2019-10-29 22:21:35 -07:00
writer.xwiki
writer.zimwiki ZimWiki writer: allow links and emphasis in headers 2021-05-20 12:48:05 +02:00
writers-lang-and-dir.context ConTeXt template: make title appear in PDF title bar. 2022-01-02 22:04:55 -08:00
writers-lang-and-dir.latex Ensure that babel is loaded also with pdflatex. 2021-10-16 23:34:53 -07:00
writers-lang-and-dir.native