aboutsummaryrefslogtreecommitdiff
path: root/test/writer.markdown
AgeCommit message (Collapse)Author
2025-07-27Markdown writer: use fenced divs even with empty attributes.Carlos Scheidegger
Previously fenced divs were not used in this case, causing the writer to fall back to raw HTML. Closes #10955.
2025-02-12Markdown writer: omit extra space after bullets.John MacFarlane
We used to insert extra spaces to ensure that the content respected the four-space rule. That is not really necessary now, since pandoc's markdown and most markdowns don't follow the four-space rule. Those who want the old behavior can obtain it by using `-t markdown+four_space_rule`. Closes #7172.
2024-04-23Markdown writer: don't use `raw_attribute` syntax for raw...John MacFarlane
blocks, unless there is no other option. Mainly this is motivated by #9677. If we put raw tex in a raw_attribute block, then the macros don't get interpreted when it is read again by pandoc's markdown reader.
2021-09-21Use pretty-simple to format native output.John MacFarlane
Previously we used our own homespun formatting. But this produces over-long lines that aren't ideal for diffs in tests. Easier to use something off-the-shelf and standard. Closes #7580. Performance is slower by about a factor of 10, but this isn't really a problem because native isn't suitable as a serialization format. (For serialization you should use json, because the reader is so much faster than native.)
2020-11-14Markdown writer: default to using ATX headings.Aner Lucero
Previously we used Setext (underlined) headings by default. The default is now ATX (`##` style). * Add the `--markdown-headings=atx|setext` option. * Deprecate `--atx-headers`. * Add constructor 'ATXHeadingInLHS` constructor to `LogMessage` [API change]. * Support `markdown-headings` in defaults files. * Document new options in MANUAL. Closes #6662.
2020-10-08Be less aggressive about using quotes for YAML values.John MacFarlane
We need quotes if `[` or `{` or `'` is at the beginning of the line, but not otherwise.
2020-10-07Use double quotes for YAML metadata.John MacFarlane
Closes #6727.
2020-04-17Markdown writer: avoid unnecessary escapes before intraword `_`John MacFarlane
when `intraword_underscores` extension is enabled. Closes #6296.
2019-07-18Markdown writer: prefer using raw_attribute when enabled.John MacFarlane
The `raw_attribute` will be used to mark raw bits, even HTML and LaTeX, and even when `raw_html` and `raw_tex` are enabled, as they are by default. To get the old behavior, disable `raw_attribute` in the writer. Closes #4311.
2019-02-25Shared.compactify: Avoid mixed lists.John MacFarlane
This improves on the original fix to #5285 by preventing other mixed lists (lists with a mix of Plain and Para elements) that were allowed given the original fix.
2018-10-14Markdown writer: ensure blank between raw block and normal content.John MacFarlane
Otherwise a raw block can prevent a paragraph from being recognized as such. Closes #4629.
2017-07-30Markdown writer: better escaping of `<` and `>`.John MacFarlane
If `all_symbols_escapable` is set, we backslash escape these. Otherwise we use entities as before.
2017-05-25Added `spaced_reference_links` extension.John MacFarlane
This is now the default for pandoc's Markdown. It allows whitespace between the two parts of a reference link: e.g. [a] [b] [b]: url This is now forbidden by default. Closes #2602.
2017-02-04Moved tests/ -> test/.John MacFarlane