aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Tests/Old.hs6
-rw-r--r--test/Tests/Writers/Markdown.hs4
-rw-r--r--test/command/3674.md2
-rw-r--r--test/command/3736.md9
-rw-r--r--test/command/4038.md2
-rw-r--r--test/command/4164.md12
-rw-r--r--test/command/5121.md3
-rw-r--r--test/command/6723.md3
-rw-r--r--test/command/6837.md29
-rw-r--r--test/command/pandoc-citeproc-119.md3
-rw-r--r--test/command/pandoc-citeproc-14.md3
-rw-r--r--test/command/pandoc-citeproc-152.md6
-rw-r--r--test/command/pandoc-citeproc-160.md6
-rw-r--r--test/command/pandoc-citeproc-175.md6
-rw-r--r--test/command/pandoc-citeproc-213.md3
-rw-r--r--test/command/pandoc-citeproc-25.md3
-rw-r--r--test/command/pandoc-citeproc-27.md3
-rw-r--r--test/command/pandoc-citeproc-371.md3
-rw-r--r--test/command/pandoc-citeproc-416.md3
-rw-r--r--test/command/pandoc-citeproc-47.md3
-rw-r--r--test/command/pandoc-citeproc-57.md3
-rw-r--r--test/command/pandoc-citeproc-58.md3
-rw-r--r--test/command/pandoc-citeproc-61.md6
-rw-r--r--test/command/pandoc-citeproc-82.md3
-rw-r--r--test/command/pandoc-citeproc-87.md3
-rw-r--r--test/command/pandoc-citeproc-chicago-author-date.md6
-rw-r--r--test/command/pandoc-citeproc-chicago-fullnote-bibliography.md6
-rw-r--r--test/command/pandoc-citeproc-ieee.md6
-rw-r--r--test/command/toc.md27
-rw-r--r--test/writer.markdown81
30 files changed, 109 insertions, 147 deletions
diff --git a/test/Tests/Old.hs b/test/Tests/Old.hs
index d1d27d9a5..2eb9e9cb0 100644
--- a/test/Tests/Old.hs
+++ b/test/Tests/Old.hs
@@ -215,7 +215,8 @@ tests pandocPath =
[ test' "reader" ["-f", "ipynb-raw_html-raw_tex+raw_attribute",
"-t", "native", "-s"]
"ipynb/simple.ipynb" "ipynb/simple.out.native"
- , test' "writer" ["-f", "native", "-t",
+ , test' "writer" ["-f", "native",
+ "--markdown-headings=setext", "-t",
"ipynb-raw_html-raw_tex+raw_attribute", "-s"]
"ipynb/simple.in.native" "ipynb/simple.ipynb"
]
@@ -241,7 +242,8 @@ lhsWriterTests pandocPath format
]
where
t n f = test pandocPath
- n ["--wrap=preserve", "-r", "native", "-s", "-w", f]
+ n ["--wrap=preserve", "-r", "native", "-s",
+ "--markdown-headings=setext", "-w", f]
"lhs-test.native" ("lhs-test" <.> f)
lhsReaderTest :: FilePath -> String -> TestTree
diff --git a/test/Tests/Writers/Markdown.hs b/test/Tests/Writers/Markdown.hs
index 00f883ecb..4b819de24 100644
--- a/test/Tests/Writers/Markdown.hs
+++ b/test/Tests/Writers/Markdown.hs
@@ -12,7 +12,9 @@ import Text.Pandoc.Arbitrary ()
import Text.Pandoc.Builder
defopts :: WriterOptions
-defopts = def{ writerExtensions = pandocExtensions }
+defopts = def
+ { writerExtensions = pandocExtensions
+ , writerSetextHeaders = True }
markdown :: (ToPandoc a) => a -> String
markdown = unpack . purely (writeMarkdown defopts) . toPandoc
diff --git a/test/command/3674.md b/test/command/3674.md
index 92ed4bed7..a24f6b46b 100644
--- a/test/command/3674.md
+++ b/test/command/3674.md
@@ -2,7 +2,7 @@ Make sure we don't get duplicate reference links, even with
`--reference-location=section`.
```
-% pandoc --reference-links -t markdown --reference-location=section --atx-headers
+% pandoc --reference-links -t markdown --reference-location=section
# a
![](a)
diff --git a/test/command/3736.md b/test/command/3736.md
index b66e0a359..b7d75aa5d 100644
--- a/test/command/3736.md
+++ b/test/command/3736.md
@@ -3,8 +3,7 @@
<h2>hi
there</h2>
^D
-hi there
---------
+## hi there
```
```
@@ -12,14 +11,12 @@ hi there
<h2>hi <em>there
again</em></h2>
^D
-hi *there again*
-----------------
+## hi *there again*
```
```
% pandoc --wrap=preserve -f html -t markdown
<h2>hi<br>there</h2>
^D
-hi there
---------
+## hi there
```
diff --git a/test/command/4038.md b/test/command/4038.md
index b5e6323df..121760540 100644
--- a/test/command/4038.md
+++ b/test/command/4038.md
@@ -1,5 +1,5 @@
```
-% pandoc -f gfm -t gfm --atx-headers
+% pandoc -f gfm -t gfm
# ~~Header~~
^D
# ~~Header~~
diff --git a/test/command/4164.md b/test/command/4164.md
index 50c3117ec..4e7b7e285 100644
--- a/test/command/4164.md
+++ b/test/command/4164.md
@@ -2,11 +2,9 @@
% pandoc -f opml -t markdown
<?xml version="1.0"?> <opml version="1.0"> <head> <title> test </title> </head> <body> <outline text="test"> <outline text="try" _note="Here is inline html:&#xA;&#xA;&lt;div&gt; &#xA;&lt;balise&gt;&#xA;bla bla&#xA;&lt;/div&gt;"/> </outline> </body> </opml>
^D
-test
-====
+# test
-try
----
+## try
Here is inline html:
@@ -22,11 +20,9 @@ Here is inline html:
% pandoc -f opml-raw_html-native_divs -t markdown
<?xml version="1.0"?> <opml version="1.0"> <head> <title> test </title> </head> <body> <outline text="test"> <outline text="try" _note="Here is inline html:&#xA;&#xA;&lt;div&gt; &#xA;&lt;balise&gt;&#xA;bla bla&#xA;&lt;/div&gt;"/> </outline> </body> </opml>
^D
-test
-====
+# test
-try
----
+## try
Here is inline html:
diff --git a/test/command/5121.md b/test/command/5121.md
index 419b8b9f4..1ee6bda77 100644
--- a/test/command/5121.md
+++ b/test/command/5121.md
@@ -8,6 +8,5 @@
<img src="./my-figure.jpg" width="500" alt="My caption" /><figcaption aria-hidden="true">My caption</figcaption>
</figure>
-Header 2
---------
+## Header 2
```
diff --git a/test/command/6723.md b/test/command/6723.md
index f4455fcce..ce89c4b88 100644
--- a/test/command/6723.md
+++ b/test/command/6723.md
@@ -20,8 +20,7 @@ Blah [@doe].
^D
Blah.[^1]
-References {#references .unnumbered}
-==========
+# References {#references .unnumbered}
::: {#refs .references .csl-bib-body .hanging-indent}
::: {#ref-doe .csl-entry}
diff --git a/test/command/6837.md b/test/command/6837.md
new file mode 100644
index 000000000..cb35e19a1
--- /dev/null
+++ b/test/command/6837.md
@@ -0,0 +1,29 @@
+```
+% pandoc -t markdown --markdown-headings=setext
+## Hi
+
+### Ok
+^D
+Hi
+--
+
+### Ok
+```
+
+```
+% pandoc -t markdown+lhs
+# Hi
+^D
+[WARNING] Rendering heading 'Hi' as a paragraph.
+ ATX headings cannot be used in literate Haskell, because '#' is not
+ allowed in column 1. Consider using --markdown-headings=setext.
+Hi
+```
+
+```
+% pandoc -t markdown --markdown-headings=atx
+Hi
+--
+^D
+## Hi
+```
diff --git a/test/command/pandoc-citeproc-119.md b/test/command/pandoc-citeproc-119.md
index 8dfdfe421..34ffc93af 100644
--- a/test/command/pandoc-citeproc-119.md
+++ b/test/command/pandoc-citeproc-119.md
@@ -12,8 +12,7 @@ References {#references .unnumbered}
^D
Averroes (1982); Averroes (1892); Averroes (1869)
-References {#references .unnumbered}
-==========
+# References {#references .unnumbered}
::: {#refs .references .csl-bib-body .hanging-indent line-spacing="2"}
::: {#ref-averroes/hercz .csl-entry}
diff --git a/test/command/pandoc-citeproc-14.md b/test/command/pandoc-citeproc-14.md
index 18c3a91ee..feb944395 100644
--- a/test/command/pandoc-citeproc-14.md
+++ b/test/command/pandoc-citeproc-14.md
@@ -54,8 +54,7 @@ References {#references .unnumbered}
Foo (Pelikan 1971b, 1:12). Bar (Pelikan 1971c, 1:12). Baz (Pelikan
1971a, 12).
-References {#references .unnumbered}
-==========
+# References {#references .unnumbered}
::: {#refs .references .csl-bib-body .hanging-indent}
::: {#ref-CTv1c2 .csl-entry}
diff --git a/test/command/pandoc-citeproc-152.md b/test/command/pandoc-citeproc-152.md
index 3e7be2e93..1810de45f 100644
--- a/test/command/pandoc-citeproc-152.md
+++ b/test/command/pandoc-citeproc-152.md
@@ -43,13 +43,11 @@ I have two citations [@Feminism2013gf; @Feminism2011ces].
References
==========
^D
-Test
-====
+# Test
I have two citations ("Communities," 2011; "Geek Feminism," 2013).
-References {#references .unnumbered}
-==========
+# References {#references .unnumbered}
::: {#refs .references .csl-bib-body .hanging-indent line-spacing="2"}
::: {#ref-Feminism2011ces .csl-entry}
diff --git a/test/command/pandoc-citeproc-160.md b/test/command/pandoc-citeproc-160.md
index 9f2a29e2c..114116289 100644
--- a/test/command/pandoc-citeproc-160.md
+++ b/test/command/pandoc-citeproc-160.md
@@ -26,13 +26,11 @@ Expected
>
> \[Jane11\] Jane Doe. A book. 2011.
^D
-No citation-label
------------------
+## No citation-label
Foo \[Jane11\].
-Expected
---------
+## Expected
> Foo \[Jane11\].
>
diff --git a/test/command/pandoc-citeproc-175.md b/test/command/pandoc-citeproc-175.md
index 7fc50f2b1..b84fc2040 100644
--- a/test/command/pandoc-citeproc-175.md
+++ b/test/command/pandoc-citeproc-175.md
@@ -27,13 +27,11 @@ Expected
> Doe, Jane. 2011. "A Title." *A Magazine*, January--February.
^D
-Missing en-dash between months
-------------------------------
+## Missing en-dash between months
Foo (Doe 2011).
-Expected
---------
+## Expected
> Doe, Jane. 2011. "A Title." *A Magazine*, January--February.
diff --git a/test/command/pandoc-citeproc-213.md b/test/command/pandoc-citeproc-213.md
index 2ca2287a1..d718a442f 100644
--- a/test/command/pandoc-citeproc-213.md
+++ b/test/command/pandoc-citeproc-213.md
@@ -23,8 +23,7 @@ References {#references .unnumbered}
^D
Foo (Doe 1999).
-References {#references .unnumbered}
-==========
+# References {#references .unnumbered}
::: {#refs .references .csl-bib-body .hanging-indent}
::: {#ref-doe1 .csl-entry}
diff --git a/test/command/pandoc-citeproc-25.md b/test/command/pandoc-citeproc-25.md
index ab0b8c6f8..540745071 100644
--- a/test/command/pandoc-citeproc-25.md
+++ b/test/command/pandoc-citeproc-25.md
@@ -20,8 +20,7 @@ References {#references .unnumbered}
^D
Foo (Author 1998).
-References {#references .unnumbered}
-==========
+# References {#references .unnumbered}
::: {#refs .references .csl-bib-body .hanging-indent}
::: {#ref-item1 .csl-entry}
diff --git a/test/command/pandoc-citeproc-27.md b/test/command/pandoc-citeproc-27.md
index ce8c20eff..d9758d711 100644
--- a/test/command/pandoc-citeproc-27.md
+++ b/test/command/pandoc-citeproc-27.md
@@ -25,8 +25,7 @@ Minimal example
Here is some text that needs a citation [@AuthorOne2014].
^D
-Minimal example
-===============
+# Minimal example
Here is some text that needs a citation (*1*).
diff --git a/test/command/pandoc-citeproc-371.md b/test/command/pandoc-citeproc-371.md
index c080b25c1..572b0dbe4 100644
--- a/test/command/pandoc-citeproc-371.md
+++ b/test/command/pandoc-citeproc-371.md
@@ -26,8 +26,7 @@ References {#references .unnumbered}
^D
Foo (Doe 2018, in press).
-References {#references .unnumbered}
-==========
+# References {#references .unnumbered}
::: {#refs .references .csl-bib-body .hanging-indent}
::: {#ref-item2 .csl-entry}
diff --git a/test/command/pandoc-citeproc-416.md b/test/command/pandoc-citeproc-416.md
index e34401118..fe29ef75d 100644
--- a/test/command/pandoc-citeproc-416.md
+++ b/test/command/pandoc-citeproc-416.md
@@ -42,8 +42,7 @@ references:
^D
Blah blah (Doe 2010, 2007, 2008).
-References {#references .unnumbered}
-==========
+# References {#references .unnumbered}
::: {#refs .references .csl-bib-body .hanging-indent}
::: {#ref-item2 .csl-entry}
diff --git a/test/command/pandoc-citeproc-47.md b/test/command/pandoc-citeproc-47.md
index 478a54bf3..5936ee8c0 100644
--- a/test/command/pandoc-citeproc-47.md
+++ b/test/command/pandoc-citeproc-47.md
@@ -90,8 +90,7 @@ coauthors' last names (regardless of how many coauthors there are)." and
chronological order is maintained, regardless of the added abbreviation.
\[ed., trans., comp., or whatever\]"
-References {#references .unnumbered}
-==========
+# References {#references .unnumbered}
::: {#refs .references .csl-bib-body .hanging-indent}
::: {#ref-doe .csl-entry}
diff --git a/test/command/pandoc-citeproc-57.md b/test/command/pandoc-citeproc-57.md
index 4232e1ef8..f208feb59 100644
--- a/test/command/pandoc-citeproc-57.md
+++ b/test/command/pandoc-citeproc-57.md
@@ -25,8 +25,7 @@ References
^D
(Faraday, forthcoming)
-References {#references .unnumbered}
-==========
+# References {#references .unnumbered}
::: {#refs .references .csl-bib-body .hanging-indent}
::: {#ref-Faraday-forthcoming .csl-entry}
diff --git a/test/command/pandoc-citeproc-58.md b/test/command/pandoc-citeproc-58.md
index 764533173..b9287fe3c 100644
--- a/test/command/pandoc-citeproc-58.md
+++ b/test/command/pandoc-citeproc-58.md
@@ -22,8 +22,7 @@ References
In this item, the title replaces the (unknown) author (see 14.79)
(*Stanze in lode della donna brutta* 1547, 12).
-References {#references .unnumbered}
-==========
+# References {#references .unnumbered}
::: {#refs .references .csl-bib-body .hanging-indent}
::: {#ref-stanze .csl-entry}
diff --git a/test/command/pandoc-citeproc-61.md b/test/command/pandoc-citeproc-61.md
index e96e93be7..e99f7e5ef 100644
--- a/test/command/pandoc-citeproc-61.md
+++ b/test/command/pandoc-citeproc-61.md
@@ -41,8 +41,7 @@ Foo [@doe, CL, 89]
References
==========
^D
-Text
-====
+# Text
Foo[^1]
@@ -54,8 +53,7 @@ Foo[^4]
Foo[^5]
-References {#references .unnumbered}
-==========
+# References {#references .unnumbered}
::: {#refs .references .csl-bib-body .hanging-indent}
::: {#ref-doe .csl-entry}
diff --git a/test/command/pandoc-citeproc-82.md b/test/command/pandoc-citeproc-82.md
index 332140ed3..bdeffaeea 100644
--- a/test/command/pandoc-citeproc-82.md
+++ b/test/command/pandoc-citeproc-82.md
@@ -24,8 +24,7 @@ Some text.[^1]
[^1]: Comment regarding text, supported by citation [@OCLC_i1099].
^D
-Title
-=====
+# Title
Some text.[^1]
diff --git a/test/command/pandoc-citeproc-87.md b/test/command/pandoc-citeproc-87.md
index 1a736ca51..e0aeda0f9 100644
--- a/test/command/pandoc-citeproc-87.md
+++ b/test/command/pandoc-citeproc-87.md
@@ -120,8 +120,7 @@ Doe (2006e) -- article-newspaper
Doe (2006b) -- article-newspaper YM
-References {#references .unnumbered}
-==========
+# References {#references .unnumbered}
::: {#refs .references .csl-bib-body .hanging-indent}
::: {#ref-item2a .csl-entry}
diff --git a/test/command/pandoc-citeproc-chicago-author-date.md b/test/command/pandoc-citeproc-chicago-author-date.md
index c754387f0..ad49d2ca3 100644
--- a/test/command/pandoc-citeproc-chicago-author-date.md
+++ b/test/command/pandoc-citeproc-chicago-author-date.md
@@ -48,8 +48,7 @@ References {#references .unnumbered}
locator [-@item2 p. 44].
^D
[WARNING] Citeproc: citation nonexistent not found
-Pandoc with citeproc-hs
-=======================
+# Pandoc with citeproc-hs
([**nonexistent?**](#ref-nonexistent))
@@ -82,8 +81,7 @@ Now some modifiers.[^3]
With some markup (*see* [Doe 2005, 32](#ref-item1)).
-References {#references .unnumbered}
-==========
+# References {#references .unnumbered}
::: {#refs .references .csl-bib-body .hanging-indent}
::: {#ref-item1 .csl-entry}
diff --git a/test/command/pandoc-citeproc-chicago-fullnote-bibliography.md b/test/command/pandoc-citeproc-chicago-fullnote-bibliography.md
index 4dfa091c0..4536342c6 100644
--- a/test/command/pandoc-citeproc-chicago-fullnote-bibliography.md
+++ b/test/command/pandoc-citeproc-chicago-fullnote-bibliography.md
@@ -49,8 +49,7 @@ References {#references .unnumbered}
[-@item1], and now Doe with a locator [-@item2 p. 44].
^D
[WARNING] Citeproc: citation nonexistent not found
-Pandoc with citeproc-hs
-=======================
+# Pandoc with citeproc-hs
[^1]
@@ -80,8 +79,7 @@ Now some modifiers.[^13]
With some markup.[^14]
-References {#references .unnumbered}
-==========
+# References {#references .unnumbered}
::: {#refs .references .csl-bib-body .hanging-indent}
::: {#ref-item2 .csl-entry}
diff --git a/test/command/pandoc-citeproc-ieee.md b/test/command/pandoc-citeproc-ieee.md
index 17ade2aae..bdc7e7150 100644
--- a/test/command/pandoc-citeproc-ieee.md
+++ b/test/command/pandoc-citeproc-ieee.md
@@ -49,8 +49,7 @@ References {#references .unnumbered}
locator [-@item2 p. 44].
^D
[WARNING] Citeproc: citation nonexistent not found
-Pandoc with citeproc-hs
-=======================
+# Pandoc with citeproc-hs
[**nonexistent?**](#ref-nonexistent)
@@ -83,8 +82,7 @@ Now some modifiers.[^3]
With some markup *see* [\[1, p. 32\]](#ref-item1).
-References {#references .unnumbered}
-==========
+# References {#references .unnumbered}
::: {#refs .references .csl-bib-body}
::: {#ref-item1 .csl-entry}
diff --git a/test/command/toc.md b/test/command/toc.md
index 9185257de..794af7690 100644
--- a/test/command/toc.md
+++ b/test/command/toc.md
@@ -23,34 +23,25 @@
- [E](#e)
- [e](#e-1)
-A
-=
+# A
-b
--
+## b
-B
-=
+# B
-b
--
+## b
::: {.interior}
-C
-=
+# C
-cc
---
+## cc
-D
-=
+# D
:::
::: {.blue}
-E
-=
+# E
-e
--
+## e
:::
```
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