aboutsummaryrefslogtreecommitdiff
path: root/test/writer.markdown
diff options
context:
space:
mode:
authorAner Lucero <4rgento@gmail.com>2020-11-14 20:09:44 -0300
committerJohn MacFarlane <jgm@berkeley.edu>2020-11-14 21:33:32 -0800
commitf63b76e1698b0d7eba6b43ef45faaeee2b01b9ca (patch)
tree58e6458690ab189e00c15b98ccb88e440c97e396 /test/writer.markdown
parentb8d17f7ae8ed37784adcfaa4f89d0d28f52fffff (diff)
downloadpandoc-f63b76e1698b0d7eba6b43ef45faaeee2b01b9ca.tar.gz
Markdown writer: default to using ATX headings.
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.
Diffstat (limited to 'test/writer.markdown')
-rw-r--r--test/writer.markdown81
1 files changed, 27 insertions, 54 deletions
diff --git a/test/writer.markdown b/test/writer.markdown
index a56a7447c..6a149882c 100644
--- a/test/writer.markdown
+++ b/test/writer.markdown
@@ -11,11 +11,9 @@ markdown test suite.
------------------------------------------------------------------------------
-Headers
-=======
+# Headers
-Level 2 with an [embedded link](/url)
--------------------------------------
+## Level 2 with an [embedded link](/url)
### Level 3 with *emphasis*
@@ -23,25 +21,21 @@ Level 2 with an [embedded link](/url)
##### Level 5
-Level 1
-=======
+# Level 1
-Level 2 with *emphasis*
------------------------
+## Level 2 with *emphasis*
### Level 3
with no blank line
-Level 2
--------
+## Level 2
with no blank line
------------------------------------------------------------------------------
-Paragraphs
-==========
+# Paragraphs
Here's a regular paragraph.
@@ -56,8 +50,7 @@ here.
------------------------------------------------------------------------------
-Block Quotes
-============
+# Block Quotes
E-mail style:
@@ -86,8 +79,7 @@ And a following paragraph.
------------------------------------------------------------------------------
-Code Blocks
-===========
+# Code Blocks
Code:
@@ -107,11 +99,9 @@ And:
------------------------------------------------------------------------------
-Lists
-=====
+# Lists
-Unordered
----------
+## Unordered
Asterisks tight:
@@ -155,8 +145,7 @@ Minuses loose:
- Minus 3
-Ordered
--------
+## Ordered
Tight:
@@ -196,8 +185,7 @@ Multiple paragraphs:
3. Item 3.
-Nested
-------
+## Nested
- Tab
- Tab
@@ -224,8 +212,7 @@ Same thing but with paragraphs:
3. Third
-Tabs and spaces
----------------
+## Tabs and spaces
- this is a list item indented with tabs
@@ -235,8 +222,7 @@ Tabs and spaces
- this is an example list item indented with spaces
-Fancy list markers
-------------------
+## Fancy list markers
(2) begins with 2
@@ -270,8 +256,7 @@ B. Williams
------------------------------------------------------------------------------
-Definition Lists
-================
+# Definition Lists
Tight using spaces:
@@ -364,8 +349,7 @@ orange
1. sublist
2. sublist
-HTML Blocks
-===========
+# HTML Blocks
Simple block on one line:
@@ -525,8 +509,7 @@ Hr's:
------------------------------------------------------------------------------
-Inline Markup
-=============
+# Inline Markup
This is *emphasized*, and so *is this*.
@@ -555,8 +538,7 @@ spaces: a\^b c\^d, a\~b c\~d.
------------------------------------------------------------------------------
-Smart quotes, ellipses, dashes
-==============================
+# Smart quotes, ellipses, dashes
"Hello," said the spider. "'Shelob' is my name."
@@ -577,8 +559,7 @@ Ellipses...and...and....
------------------------------------------------------------------------------
-LaTeX
-=====
+# LaTeX
- `\cite[22-23]{smith.1899}`{=tex}
- $2+2=4$
@@ -610,8 +591,7 @@ Cat & 1 \\ \hline
------------------------------------------------------------------------------
-Special Characters
-==================
+# Special Characters
Here is some unicode:
@@ -665,11 +645,9 @@ Minus: -
------------------------------------------------------------------------------
-Links
-=====
+# Links
-Explicit
---------
+## Explicit
Just a [URL](/url/).
@@ -689,8 +667,7 @@ Just a [URL](/url/).
[Empty]().
-Reference
----------
+## Reference
Foo [bar](/url/).
@@ -712,8 +689,7 @@ Foo [bar](/url/ "Title with "quotes" inside").
Foo [biz](/url/ "Title with "quote" inside").
-With ampersands
----------------
+## With ampersands
Here's a [link with an ampersand in the URL](http://example.com/?foo=1&bar=2).
@@ -724,8 +700,7 @@ Here's an [inline link](/script?foo=1&bar=2).
Here's an [inline link in pointy braces](/script?foo=1&bar=2).
-Autolinks
----------
+## Autolinks
With an ampersand: <http://example.com/?foo=1&bar=2>
@@ -743,8 +718,7 @@ Auto-links should not occur here: `<http://example.com/>`
------------------------------------------------------------------------------
-Images
-======
+# Images
From "Voyage dans la Lune" by Georges Melies (1902):
@@ -754,8 +728,7 @@ Here is a movie ![movie](movie.jpg) icon.
------------------------------------------------------------------------------
-Footnotes
-=========
+# Footnotes
Here is a footnote reference,[^1] and another.[^2] This should *not* be a
footnote reference, because it contains a space.\[\^my note\] Here is an