diff options
| author | John MacFarlane <[email protected]> | 2025-02-12 09:41:20 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-02-12 09:41:20 -0800 |
| commit | 0fe62545358a373e4e22fa2421dd51dcc4400123 (patch) | |
| tree | 8437f587bb390193eb72786616c69ada343895f8 /test | |
| parent | 1a8db18d6a2b7d649c3d3a22da1f8e289f6b1ddb (diff) | |
Markdown writer: omit extra space after bullets.
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.
Diffstat (limited to 'test')
| -rw-r--r-- | test/Tests/Writers/Markdown.hs | 2 | ||||
| -rw-r--r-- | test/command/10484.md | 12 | ||||
| -rw-r--r-- | test/command/3487.md | 2 | ||||
| -rw-r--r-- | test/command/3596.md | 30 | ||||
| -rw-r--r-- | test/command/5705.md | 2 | ||||
| -rw-r--r-- | test/command/5857.md | 6 | ||||
| -rw-r--r-- | test/command/5967.md | 4 | ||||
| -rw-r--r-- | test/command/6858.md | 4 | ||||
| -rw-r--r-- | test/command/7172.md | 17 | ||||
| -rw-r--r-- | test/command/7329.md | 18 | ||||
| -rw-r--r-- | test/command/8131.md | 2 | ||||
| -rw-r--r-- | test/command/8150.md | 18 | ||||
| -rw-r--r-- | test/command/8402.md | 16 | ||||
| -rw-r--r-- | test/command/9908.md | 6 | ||||
| -rw-r--r-- | test/command/tasklist.md | 4 | ||||
| -rw-r--r-- | test/command/toc.md | 12 | ||||
| -rw-r--r-- | test/writer.markdown | 106 | ||||
| -rw-r--r-- | test/writer.opml | 12 | ||||
| -rw-r--r-- | test/writer.plain | 105 |
19 files changed, 197 insertions, 181 deletions
diff --git a/test/Tests/Writers/Markdown.hs b/test/Tests/Writers/Markdown.hs index ad1835f4d..8c772cec5 100644 --- a/test/Tests/Writers/Markdown.hs +++ b/test/Tests/Writers/Markdown.hs @@ -45,7 +45,7 @@ tests = [ "indented code after list" , "list with tight sublist" =: bulletList [ plain "foo" <> bulletList [ plain "bar" ], plain "baz" ] - =?> "- foo\n - bar\n- baz\n" + =?> "- foo\n - bar\n- baz\n" ] ++ [noteTests] ++ [shortcutLinkRefsTests] {- diff --git a/test/command/10484.md b/test/command/10484.md index 510446aa4..979517e9c 100644 --- a/test/command/10484.md +++ b/test/command/10484.md @@ -13,10 +13,10 @@ __ https://github.com/joe/project/issues/999 ^D -- One issue fixed: [issue - 123](https://github.com/joe/project/issues/123). -- One change merged: [Big - change](https://github.com/joe/project/pull/234). -- Improved the [home page](https://example.com/homepage). -- One more [small change](https://github.com/joe/project/issues/999). +- One issue fixed: [issue + 123](https://github.com/joe/project/issues/123). +- One change merged: [Big + change](https://github.com/joe/project/pull/234). +- Improved the [home page](https://example.com/homepage). +- One more [small change](https://github.com/joe/project/issues/999). ``` diff --git a/test/command/3487.md b/test/command/3487.md index 1d475676f..65d6f22e7 100644 --- a/test/command/3487.md +++ b/test/command/3487.md @@ -7,5 +7,5 @@ Some text ^D Some text -- element +- element ``` diff --git a/test/command/3596.md b/test/command/3596.md index 01a871e1b..972395ef7 100644 --- a/test/command/3596.md +++ b/test/command/3596.md @@ -6,9 +6,9 @@ <li>baz</li> </ul> ^D -- foo -- bar -- baz +- foo +- bar +- baz ``` ``` @@ -19,10 +19,10 @@ <li>baz</li> </ul> ^D -- foo -- bar - - subbar -- baz +- foo +- bar + - subbar +- baz ``` @@ -34,9 +34,9 @@ <li>baz</li> </ul> ^D -- foo -- [bar]{#id} -- baz +- foo +- [bar]{#id} +- baz ``` @@ -48,12 +48,12 @@ <li><p>baz</p></li> </ul> ^D -- foo +- foo -- ::: {#id} - bar - ::: +- ::: {#id} + bar + ::: -- baz +- baz ``` diff --git a/test/command/5705.md b/test/command/5705.md index 589910669..a8923999d 100644 --- a/test/command/5705.md +++ b/test/command/5705.md @@ -6,6 +6,6 @@ [[Plain [Str "Blah"]]]]]] ^D VIII. Blah - - Blah + - Blah ``` diff --git a/test/command/5857.md b/test/command/5857.md index 31320cd12..5f15ce3d6 100644 --- a/test/command/5857.md +++ b/test/command/5857.md @@ -5,7 +5,7 @@ ,[] ,[Plain [Str "b"]]]] ^D -- a -- -- b +- a +- +- b ``` diff --git a/test/command/5967.md b/test/command/5967.md index 9bb802d40..fb4e63e50 100644 --- a/test/command/5967.md +++ b/test/command/5967.md @@ -4,8 +4,8 @@ ## Two #### Four ^D -- One - - Two +- One + - Two One diff --git a/test/command/6858.md b/test/command/6858.md index 53cb9bddb..3428157ff 100644 --- a/test/command/6858.md +++ b/test/command/6858.md @@ -46,7 +46,7 @@ hi there ^D -- hi +- hi -- there +- there ``` diff --git a/test/command/7172.md b/test/command/7172.md new file mode 100644 index 000000000..a7b5a4c1c --- /dev/null +++ b/test/command/7172.md @@ -0,0 +1,17 @@ +``` +% pandoc -t markdown +- one + - two +^D +- one + - two +``` + +``` +% pandoc -t markdown+four_space_rule +- one + - two +^D +- one + - two +``` diff --git a/test/command/7329.md b/test/command/7329.md index 9ed9c52ff..b5f590d7b 100644 --- a/test/command/7329.md +++ b/test/command/7329.md @@ -55,13 +55,13 @@ Doe, John. 2005. /First Book/. Cambridge: Cambridge University Press. - [cite:@item1; @item2] - [cite:see @item1; @item2] ^D -- @item1 -- @item1 [p. 12] -- @item1 [p.12; see also @item2] -- [@item1] -- [-@item1] -- [see @item1 p. 12] -- [see @item1 p. 12 and *passim*] -- [@item1; @item2] -- [see @item1; @item2] +- @item1 +- @item1 [p. 12] +- @item1 [p.12; see also @item2] +- [@item1] +- [-@item1] +- [see @item1 p. 12] +- [see @item1 p. 12 and *passim*] +- [@item1; @item2] +- [see @item1; @item2] ``` diff --git a/test/command/8131.md b/test/command/8131.md index 6820542f6..02f6edc92 100644 --- a/test/command/8131.md +++ b/test/command/8131.md @@ -19,7 +19,7 @@ Content Content ^D -- [Head](#head) +- [Head](#head) # Head diff --git a/test/command/8150.md b/test/command/8150.md index 5034bed1e..36865dbcf 100644 --- a/test/command/8150.md +++ b/test/command/8150.md @@ -11,11 +11,11 @@ Nested bullet lists <li>L4</li> </ul> ^D -- L1 -- L2 - - L3.1 - - L3.2 -- L4 +- L1 +- L2 + - L3.1 + - L3.2 +- L4 ``` Nested ordered lists @@ -48,8 +48,8 @@ Ordered list nested below an unordered list </ol> </ul> ^D -- L1 -- L2 - 1. L3.1 - 2. L3.2 +- L1 +- L2 + 1. L3.1 + 2. L3.2 ``` diff --git a/test/command/8402.md b/test/command/8402.md index 67536227c..aa5fd880c 100644 --- a/test/command/8402.md +++ b/test/command/8402.md @@ -19,14 +19,14 @@ text ## inner 3 text ^D -- [Summary](#summary){#toc-summary} - - [Overview and - Explanation](#overview-and-explanation){#toc-overview-and-explanation} -- [Details](#details){#toc-details} - - [inner 1](#inner-1){#toc-inner-1} - - [inner 2](#inner-2){#toc-inner-2} - - [inner inner 1](#inner-inner-1){#toc-inner-inner-1} - - [inner 3](#inner-3){#toc-inner-3} +- [Summary](#summary){#toc-summary} + - [Overview and + Explanation](#overview-and-explanation){#toc-overview-and-explanation} +- [Details](#details){#toc-details} + - [inner 1](#inner-1){#toc-inner-1} + - [inner 2](#inner-2){#toc-inner-2} + - [inner inner 1](#inner-inner-1){#toc-inner-inner-1} + - [inner 3](#inner-3){#toc-inner-3} ::: {#6u8qXoeFGdqt .cell .markdown} # Summary diff --git a/test/command/9908.md b/test/command/9908.md index 9954298e0..a4aa2cdd6 100644 --- a/test/command/9908.md +++ b/test/command/9908.md @@ -4,7 +4,7 @@ [ [ BlockQuote [ Para [ Str "a" ] , Para [ Str "b" ] ] ] ] ] ^D -- > a - > - > b +- > a + > + > b ``` diff --git a/test/command/tasklist.md b/test/command/tasklist.md index 9aaa0a8aa..177845aac 100644 --- a/test/command/tasklist.md +++ b/test/command/tasklist.md @@ -100,6 +100,6 @@ round trip: - [ ] foo - [x] bar ^D -- [ ] foo -- [x] bar +- [ ] foo +- [x] bar ```
\ No newline at end of file diff --git a/test/command/toc.md b/test/command/toc.md index 7474955e5..e681e93af 100644 --- a/test/command/toc.md +++ b/test/command/toc.md @@ -16,12 +16,12 @@ ## e ::: ^D -- [A](#a){#toc-a} - - [b](#b){#toc-b} -- [B](#b-1){#toc-b-1} - - [b](#b-2){#toc-b-2} -- [E](#e){#toc-e} - - [e](#e-1){#toc-e-1} +- [A](#a){#toc-a} + - [b](#b){#toc-b} +- [B](#b-1){#toc-b-1} + - [b](#b-2){#toc-b-2} +- [E](#e){#toc-e} + - [e](#e-1){#toc-e-1} # A diff --git a/test/writer.markdown b/test/writer.markdown index 37b233622..1ecb10679 100644 --- a/test/writer.markdown +++ b/test/writer.markdown @@ -105,45 +105,45 @@ And: Asterisks tight: -- asterisk 1 -- asterisk 2 -- asterisk 3 +- asterisk 1 +- asterisk 2 +- asterisk 3 Asterisks loose: -- asterisk 1 +- asterisk 1 -- asterisk 2 +- asterisk 2 -- asterisk 3 +- asterisk 3 Pluses tight: -- Plus 1 -- Plus 2 -- Plus 3 +- Plus 1 +- Plus 2 +- Plus 3 Pluses loose: -- Plus 1 +- Plus 1 -- Plus 2 +- Plus 2 -- Plus 3 +- Plus 3 Minuses tight: -- Minus 1 -- Minus 2 -- Minus 3 +- Minus 1 +- Minus 2 +- Minus 3 Minuses loose: -- Minus 1 +- Minus 1 -- Minus 2 +- Minus 2 -- Minus 3 +- Minus 3 ## Ordered @@ -187,17 +187,17 @@ Multiple paragraphs: ## Nested -- Tab - - Tab - - Tab +- Tab + - Tab + - Tab Here's another: 1. First 2. Second: - - Fee - - Fie - - Foe + - Fee + - Fie + - Foe 3. Third Same thing but with paragraphs: @@ -206,21 +206,21 @@ Same thing but with paragraphs: 2. Second: - - Fee - - Fie - - Foe + - Fee + - Fie + - Foe 3. Third ## Tabs and spaces -- this is a list item indented with tabs +- this is a list item indented with tabs -- this is a list item indented with spaces +- this is a list item indented with spaces - - this is an example list item indented with tabs + - this is an example list item indented with tabs - - this is an example list item indented with spaces + - this is an example list item indented with spaces ## Fancy list markers @@ -521,23 +521,23 @@ Ellipses...and...and.... # LaTeX -- `\cite[22-23]{smith.1899}`{=tex} -- $2+2=4$ -- $x \in y$ -- $\alpha \wedge \omega$ -- $223$ -- $p$-Tree -- Here's some display math: - $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$ -- Here's one that has a line break in it: $\alpha + \omega \times x^2$. +- `\cite[22-23]{smith.1899}`{=tex} +- $2+2=4$ +- $x \in y$ +- $\alpha \wedge \omega$ +- $223$ +- $p$-Tree +- Here's some display math: + $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$ +- Here's one that has a line break in it: $\alpha + \omega \times x^2$. These shouldn't be math: -- To get the famous equation, write `$e = mc^2$`. -- \$22,000 is a *lot* of money. So is \$34,000. (It worked if "lot" is - emphasized.) -- Shoes (\$20) and socks (\$5). -- Escaped `$`: \$73 *this should be emphasized* 23\$. +- To get the famous equation, write `$e = mc^2$`. +- \$22,000 is a *lot* of money. So is \$34,000. (It worked if "lot" is + emphasized.) +- Shoes (\$20) and socks (\$5). +- Escaped `$`: \$73 *this should be emphasized* 23\$. Here's a LaTeX table: @@ -553,11 +553,11 @@ Cat & 1 \\ \hline Here is some unicode: -- I hat: Î -- o umlaut: ö -- section: § -- set membership: ∈ -- copyright: © +- I hat: Î +- o umlaut: ö +- section: § +- set membership: ∈ +- copyright: © AT&T has an ampersand in their name. @@ -661,9 +661,9 @@ Here's an [inline link in pointy braces](/script?foo=1&bar=2). With an ampersand: <http://example.com/?foo=1&bar=2> -- In a list? -- <http://example.com/> -- It should. +- In a list? +- <http://example.com/> +- It should. An e-mail address: <[email protected]> diff --git a/test/writer.opml b/test/writer.opml index f7961e817..89f4b6fee 100644 --- a/test/writer.opml +++ b/test/writer.opml @@ -31,13 +31,13 @@ <outline text="Code Blocks" _note="Code: ---- (should be four hyphens) sub status { print "working"; } this code block is indented by one tab And: this code block is indented by two tabs These should not be escaped: \$ \\ \> \[ \{ --------------------------------------------------------------------------------"> </outline> <outline text="Lists"> - <outline text="Unordered" _note="Asterisks tight: - asterisk 1 - asterisk 2 - asterisk 3 Asterisks loose: - asterisk 1 - asterisk 2 - asterisk 3 Pluses tight: - Plus 1 - Plus 2 - Plus 3 Pluses loose: - Plus 1 - Plus 2 - Plus 3 Minuses tight: - Minus 1 - Minus 2 - Minus 3 Minuses loose: - Minus 1 - Minus 2 - Minus 3"> + <outline text="Unordered" _note="Asterisks tight: - asterisk 1 - asterisk 2 - asterisk 3 Asterisks loose: - asterisk 1 - asterisk 2 - asterisk 3 Pluses tight: - Plus 1 - Plus 2 - Plus 3 Pluses loose: - Plus 1 - Plus 2 - Plus 3 Minuses tight: - Minus 1 - Minus 2 - Minus 3 Minuses loose: - Minus 1 - Minus 2 - Minus 3"> </outline> <outline text="Ordered" _note="Tight: 1. First 2. Second 3. Third and: 1. One 2. Two 3. Three Loose using tabs: 1. First 2. Second 3. Third and using spaces: 1. One 2. Two 3. Three Multiple paragraphs: 1. Item 1, graf one. Item 1. graf two. The quick brown fox jumped over the lazy dog's back. 2. Item 2. 3. Item 3."> </outline> - <outline text="Nested" _note="- Tab - Tab - Tab Here's another: 1. First 2. Second: - Fee - Fie - Foe 3. Third Same thing but with paragraphs: 1. First 2. Second: - Fee - Fie - Foe 3. Third"> + <outline text="Nested" _note="- Tab - Tab - Tab Here's another: 1. First 2. Second: - Fee - Fie - Foe 3. Third Same thing but with paragraphs: 1. First 2. Second: - Fee - Fie - Foe 3. Third"> </outline> - <outline text="Tabs and spaces" _note="- this is a list item indented with tabs - this is a list item indented with spaces - this is an example list item indented with tabs - this is an example list item indented with spaces"> + <outline text="Tabs and spaces" _note="- this is a list item indented with tabs - this is a list item indented with spaces - this is an example list item indented with tabs - this is an example list item indented with spaces"> </outline> <outline text="Fancy list markers" _note="(2) begins with 2 (3) and now 3 with a continuation iv. sublist with roman numerals, starting with 4 v. more items (A) a subsublist (B) a subsublist Nesting: A. Upper Alpha I. Upper Roman. (6) Decimal start with 6 c) Lower alpha with paren Autonumbering: 1. Autonumber. 2. More. 1. Nested. Should not be a list item: M.A. 2007 B. Williams --------------------------------------------------------------------------------"> </outline> @@ -50,9 +50,9 @@ </outline> <outline text="Smart quotes, ellipses, dashes" _note=""Hello," said the spider. "'Shelob' is my name." 'A', 'B', and 'C' are letters. 'Oak,' 'elm,' and 'beech' are names of trees. So is 'pine.' 'He said, "I want to go."' Were you alive in the 70's? Here is some quoted '`code`' and a "[quoted link](http://example.com/?foo=1&bar=2)". Some dashes: one---two --- three---four --- five. Dashes between numbers: 5--7, 255--66, 1987--1999. Ellipses...and...and.... --------------------------------------------------------------------------------"> </outline> -<outline text="LaTeX" _note="- `\cite[22-23]{smith.1899}`{=tex} - $2+2=4$ - $x \in y$ - $\alpha \wedge \omega$ - $223$ - $p$-Tree - Here's some display math: $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$ - Here's one that has a line break in it: $\alpha + \omega \times x^2$. These shouldn't be math: - To get the famous equation, write `$e = mc^2$`. - \$22,000 is a *lot* of money. So is \$34,000. (It worked if "lot" is emphasized.) - Shoes (\$20) and socks (\$5). - Escaped `$`: \$73 *this should be emphasized* 23\$. Here's a LaTeX table: \begin{tabular}{|l|l|}\hline Animal & Number \\ \hline Dog & 2 \\ Cat & 1 \\ \hline \end{tabular} --------------------------------------------------------------------------------"> +<outline text="LaTeX" _note="- `\cite[22-23]{smith.1899}`{=tex} - $2+2=4$ - $x \in y$ - $\alpha \wedge \omega$ - $223$ - $p$-Tree - Here's some display math: $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$ - Here's one that has a line break in it: $\alpha + \omega \times x^2$. These shouldn't be math: - To get the famous equation, write `$e = mc^2$`. - \$22,000 is a *lot* of money. So is \$34,000. (It worked if "lot" is emphasized.) - Shoes (\$20) and socks (\$5). - Escaped `$`: \$73 *this should be emphasized* 23\$. Here's a LaTeX table: \begin{tabular}{|l|l|}\hline Animal & Number \\ \hline Dog & 2 \\ Cat & 1 \\ \hline \end{tabular} --------------------------------------------------------------------------------"> </outline> -<outline text="Special Characters" _note="Here is some unicode: - I hat: Î - o umlaut: ö - section: § - set membership: ∈ - copyright: © AT&T has an ampersand in their name. AT&T is another way to write it. This & that. 4 \< 5. 6 \> 5. Backslash: \\ Backtick: \` Asterisk: \* Underscore: \_ Left brace: { Right brace: } Left bracket: \[ Right bracket: \] Left paren: ( Right paren: ) Greater-than: \> Hash: \# Period: . Bang: ! Plus: + Minus: - --------------------------------------------------------------------------------"> +<outline text="Special Characters" _note="Here is some unicode: - I hat: Î - o umlaut: ö - section: § - set membership: ∈ - copyright: © AT&T has an ampersand in their name. AT&T is another way to write it. This & that. 4 \< 5. 6 \> 5. Backslash: \\ Backtick: \` Asterisk: \* Underscore: \_ Left brace: { Right brace: } Left bracket: \[ Right bracket: \] Left paren: ( Right paren: ) Greater-than: \> Hash: \# Period: . Bang: ! Plus: + Minus: - --------------------------------------------------------------------------------"> </outline> <outline text="Links"> <outline text="Explicit" _note="Just a [URL](/url/). [URL and title](/url/ "title"). [URL and title](/url/ "title preceded by two spaces"). [URL and title](/url/ "title preceded by a tab"). [URL and title](/url/ "title with "quotes" in it") [URL and title](/url/ "title with single quotes") [with_underscore](/url/with_underscore) [Email link](mailto:[email protected]) [Empty]()."> @@ -61,7 +61,7 @@ </outline> <outline text="With ampersands" _note="Here's a [link with an ampersand in the URL](http://example.com/?foo=1&bar=2). Here's a link with an amersand in the link text: [AT&T](http://att.com/ "AT&T"). Here's an [inline link](/script?foo=1&bar=2). Here's an [inline link in pointy braces](/script?foo=1&bar=2)."> </outline> - <outline text="Autolinks" _note="With an ampersand: <http://example.com/?foo=1&bar=2> - In a list? - <http://example.com/> - It should. An e-mail address: <[email protected]> > Blockquoted: <http://example.com/> Auto-links should not occur here: `<http://example.com/>` or here: <http://example.com/> --------------------------------------------------------------------------------"> + <outline text="Autolinks" _note="With an ampersand: <http://example.com/?foo=1&bar=2> - In a list? - <http://example.com/> - It should. An e-mail address: <[email protected]> > Blockquoted: <http://example.com/> Auto-links should not occur here: `<http://example.com/>` or here: <http://example.com/> --------------------------------------------------------------------------------"> </outline> </outline> <outline text="Images" _note="From "Voyage dans la Lune" by Georges Melies (1902):  Here is a movie  icon. --------------------------------------------------------------------------------"> diff --git a/test/writer.plain b/test/writer.plain index b9425f9c0..814f40776 100644 --- a/test/writer.plain +++ b/test/writer.plain @@ -101,45 +101,45 @@ Unordered Asterisks tight: -- asterisk 1 -- asterisk 2 -- asterisk 3 +- asterisk 1 +- asterisk 2 +- asterisk 3 Asterisks loose: -- asterisk 1 +- asterisk 1 -- asterisk 2 +- asterisk 2 -- asterisk 3 +- asterisk 3 Pluses tight: -- Plus 1 -- Plus 2 -- Plus 3 +- Plus 1 +- Plus 2 +- Plus 3 Pluses loose: -- Plus 1 +- Plus 1 -- Plus 2 +- Plus 2 -- Plus 3 +- Plus 3 Minuses tight: -- Minus 1 -- Minus 2 -- Minus 3 +- Minus 1 +- Minus 2 +- Minus 3 Minuses loose: -- Minus 1 +- Minus 1 -- Minus 2 +- Minus 2 -- Minus 3 +- Minus 3 Ordered @@ -183,17 +183,17 @@ Multiple paragraphs: Nested -- Tab - - Tab - - Tab +- Tab + - Tab + - Tab Here’s another: 1. First 2. Second: - - Fee - - Fie - - Foe + - Fee + - Fie + - Foe 3. Third Same thing but with paragraphs: @@ -202,21 +202,21 @@ Same thing but with paragraphs: 2. Second: - - Fee - - Fie - - Foe + - Fee + - Fie + - Foe 3. Third Tabs and spaces -- this is a list item indented with tabs +- this is a list item indented with tabs -- this is a list item indented with spaces +- this is a list item indented with spaces - - this is an example list item indented with tabs + - this is an example list item indented with tabs - - this is an example list item indented with spaces + - this is an example list item indented with spaces Fancy list markers @@ -448,23 +448,22 @@ Ellipses…and…and…. LaTeX -- -- 2 + 2 = 4 -- x ∈ y -- α ∧ ω -- 223 -- p-Tree -- Here’s some display math: - $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$ -- Here’s one that has a line break in it: α + ω × x². +- +- 2 + 2 = 4 +- x ∈ y +- α ∧ ω +- 223 +- p-Tree +- Here’s some display math: + $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$ +- Here’s one that has a line break in it: α + ω × x². These shouldn’t be math: -- To get the famous equation, write $e = mc^2$. -- $22,000 is a lot of money. So is $34,000. (It worked if “lot” is - emphasized.) -- Shoes ($20) and socks ($5). -- Escaped $: $73 this should be emphasized 23$. +- To get the famous equation, write $e = mc^2$. +- $22,000 is a lot of money. So is $34,000. (It worked if “lot” is emphasized.) +- Shoes ($20) and socks ($5). +- Escaped $: $73 this should be emphasized 23$. Here’s a LaTeX table: @@ -474,11 +473,11 @@ Special Characters Here is some unicode: -- I hat: Î -- o umlaut: ö -- section: § -- set membership: ∈ -- copyright: © +- I hat: Î +- o umlaut: ö +- section: § +- set membership: ∈ +- copyright: © AT&T has an ampersand in their name. @@ -582,9 +581,9 @@ Autolinks With an ampersand: http://example.com/?foo=1&bar=2 -- In a list? -- http://example.com/ -- It should. +- In a list? +- http://example.com/ +- It should. An e-mail address: [email protected] |
