Class { #name : #PPCommonMarkSpecTest, #superclass : #PPCompositeParserTest, #instVars : [ 'expected', 'input', 'ast', 'blockParser', 'blockAst', 'blockVisitor', 'htmlVisitor' ], #category : #'PetitMarkdown-Tests' } { #category : #'as yet unclassified' } PPCommonMarkSpecTest >> assertExample [ | | "Create block structure" blockAst := blockParser parse: input. "Parse inlines of block" ast := blockAst accept: blockVisitor. "Generate HTML" result := ast accept: htmlVisitor. self assert: expected = result. " (TextDiffBuilder from: expected to: result) buildDisplayPatch. " ] { #category : #'as yet unclassified' } PPCommonMarkSpecTest >> setUp [ blockVisitor := CMBlockVisitor new. htmlVisitor := CMHTMLVisitor new. blockParser := PPCommonMarkBlockParser new. ] { #category : #'tab expansion' } PPCommonMarkSpecTest >> testExample001 [ input := String tab, 'foo', String tab, 'baz', String tab, String tab, 'bim'. expected := '
foo baz bim
'.
true ifTrue: [ ^ self flag: 'tabstops not yet supported' ].
self assertExample.
]
{ #category : #'tab expansion' }
PPCommonMarkSpecTest >> testExample002 [
input := 'a', String tab, 'a', String cr, ' ὐ', String tab, 'a'.
expected := 'a a
ὐ a
'.
true ifTrue: [ ^ self flag: 'tabstops not yet supported' ].
self assertExample.
]
{ #category : #precedence }
PPCommonMarkSpecTest >> testExample003 [
input := '- `one
- two`'.
expected := '+++
'. self assertExample. ] { #category : #'horizontal rules' } PPCommonMarkSpecTest >> testExample006 [ input := '==='. expected := '===
'. self assertExample. ] { #category : #'horizontal rules' } PPCommonMarkSpecTest >> testExample007 [ input := '-- ** __'. expected := '-- ** __
'. self assertExample. ] { #category : #'horizontal rules' } PPCommonMarkSpecTest >> testExample008 [ input := ' *** *** *** '. expected := '***
'.
self assertExample.
]
{ #category : #'horizontal rules' }
PPCommonMarkSpecTest >> testExample010 [
input := 'Foo
***'.
expected := 'Foo ***
'. self assertExample. ] { #category : #'horizontal rules' } PPCommonMarkSpecTest >> testExample011 [ input := '_____________________________________'. expected := '_ _ _ _ a
a------
---a---
'. self assertExample. ] { #category : #'horizontal rules' } PPCommonMarkSpecTest >> testExample017 [ input := ' *-*'. expected := '-'. self flag: 'updated:'. expected := '-
'. self assertExample. ] { #category : #'horizontal rules' } PPCommonMarkSpecTest >> testExample018 [ input := '- foo *** - bar'. expected := 'Foo
bar
'. self assertExample. ] { #category : #'horizontal rules' } PPCommonMarkSpecTest >> testExample020 [ input := 'Foo --- bar'. expected := 'bar
'. self assertExample. ] { #category : #'horizontal rules' } PPCommonMarkSpecTest >> testExample021 [ input := '* Foo * * * * Bar'. expected := '####### foo
'. self assertExample. ] { #category : #'ATX Headers' } PPCommonMarkSpecTest >> testExample025 [ input := '#5 bolt'. expected := '#5 bolt
'. self assertExample. ] { #category : #'ATX Headers' } PPCommonMarkSpecTest >> testExample026 [ input := '\## foo'. expected := '## foo
'. self assertExample. ] { #category : #'ATX Headers' } PPCommonMarkSpecTest >> testExample027 [ input := '# foo *bar* \*baz\*'. expected := '# foo
'.
self assertExample.
]
{ #category : #'ATX Headers' }
PPCommonMarkSpecTest >> testExample031 [
input := 'foo
# bar'.
expected := 'foo # bar
'. self assertExample. ] { #category : #'ATX Headers' } PPCommonMarkSpecTest >> testExample032 [ input := '## foo ## ### bar ###'. expected := 'Foo bar
Bar foo
'. self assertExample. ] { #category : #'ATX Headers' } PPCommonMarkSpecTest >> testExample040 [ input := '## # ### ###'. expected := ' '. self assertExample. ] { #category : #'setext headears' } PPCommonMarkSpecTest >> testExample041 [ input := 'Foo *bar* ========= Foo *bar* ---------'. expected := 'Foo
---
Foo
Foo ---
'. self assertExample. ] { #category : #'setext headears' } PPCommonMarkSpecTest >> testExample047 [ input := 'Foo = = Foo --- - '. expected := 'Foo = =
Foo
`
of dashes"/>
'. self assertExample. ] { #category : #'setext headears' } PPCommonMarkSpecTest >> testExample051 [ input := '> Foo ---'. expected := 'Foo
Foo Bar
Foo Bar ===
'. self assertExample. ] { #category : #'setext headears' } PPCommonMarkSpecTest >> testExample054 [ input := '--- Foo --- Bar --- Baz'. expected := 'Baz
'. self assertExample. ] { #category : #'setext headears' } PPCommonMarkSpecTest >> testExample055 [ input := ' ===='. expected := '====
'. self assertExample. ] { #category : #'setext headears' } PPCommonMarkSpecTest >> testExample056 [ input := '--- ---'. expected := 'foo
foo
a simple
indented code block
'.
self assertExample.
]
{ #category : #'indented code blocks' }
PPCommonMarkSpecTest >> testExample062 [
input := '
*hi*
- one'.
expected := '<a/>
*hi*
- one
'.
self assertExample.
]
{ #category : #'indented code blocks' }
PPCommonMarkSpecTest >> testExample063 [
input := ' chunk1
chunk2
chunk3'.
expected := 'chunk1
chunk2
chunk3
'.
self assertExample.
]
{ #category : #'indented code blocks' }
PPCommonMarkSpecTest >> testExample064 [
input := ' chunk1
chunk2'.
expected := 'chunk1
chunk2
'.
self assertExample.
]
{ #category : #'indented code blocks' }
PPCommonMarkSpecTest >> testExample065 [
input := 'Foo
bar'.
expected := 'Foo bar
'. self assertExample. ] { #category : #'indented code blocks' } PPCommonMarkSpecTest >> testExample066 [ input := ' foo bar'. expected := 'foo
bar
'. self assertExample. ] { #category : #'indented code blocks' } PPCommonMarkSpecTest >> testExample067 [ input := '# Header foo Header ------ foo ----'. expected := 'foo
foo
foo
bar
'.
self assertExample.
]
{ #category : #'indented code blocks' }
PPCommonMarkSpecTest >> testExample069 [
input := '
foo
'.
expected := 'foo
'.
self assertExample.
]
{ #category : #'indented code blocks' }
PPCommonMarkSpecTest >> testExample070 [
input := ' foo
'.
expected := 'foo
'.
self assertExample.
]
{ #category : #'fenced code blocks' }
PPCommonMarkSpecTest >> testExample071 [
input := '```
<
>
```'.
expected := '<
>
'.
self assertExample.
]
{ #category : #'fenced code blocks' }
PPCommonMarkSpecTest >> testExample072 [
input := '~~~
<
>
~~~'.
expected := '<
>
'.
self assertExample.
]
{ #category : #'fenced code blocks' }
PPCommonMarkSpecTest >> testExample073 [
input := '```
aaa
~~~
```'.
expected := 'aaa
~~~
'.
self assertExample.
]
{ #category : #'fenced code blocks' }
PPCommonMarkSpecTest >> testExample074 [
input := '~~~
aaa
```
~~~'.
expected := 'aaa
```
'.
self assertExample.
]
{ #category : #'fenced code blocks' }
PPCommonMarkSpecTest >> testExample075 [
input := '````
aaa
```
``````'.
expected := 'aaa
```
'.
self assertExample.
]
{ #category : #'fenced code blocks' }
PPCommonMarkSpecTest >> testExample076 [
input := '~~~~
aaa
~~~
~~~~'.
expected := 'aaa
~~~
'.
self assertExample.
]
{ #category : #'fenced code blocks' }
PPCommonMarkSpecTest >> testExample077 [
input := '```'.
expected := '
'.
self assertExample.
]
{ #category : #'fenced code blocks' }
PPCommonMarkSpecTest >> testExample078 [
input := '
`````
```
aaa
'.
expected := '
```
aaa
'.
self assertExample.
]
{ #category : #'fenced code blocks' }
PPCommonMarkSpecTest >> testExample079 [
input := '```
```
'.
expected := '
'.
self assertExample.
]
{ #category : #'fenced code blocks' }
PPCommonMarkSpecTest >> testExample080 [
input := '```
```'.
expected := '
'.
self assertExample.
]
{ #category : #'fenced code blocks' }
PPCommonMarkSpecTest >> testExample081 [
input := ' ```
aaa
aaa
```'.
expected := 'aaa
aaa
'.
self assertExample.
]
{ #category : #'fenced code blocks' }
PPCommonMarkSpecTest >> testExample082 [
input := ' ```
aaa
aaa
aaa
```'.
expected := 'aaa
aaa
aaa
'.
self assertExample.
]
{ #category : #'fenced code blocks' }
PPCommonMarkSpecTest >> testExample083 [
input := ' ```
aaa
aaa
aaa
```'.
expected := 'aaa
aaa
aaa
'.
self assertExample.
]
{ #category : #'fenced code blocks' }
PPCommonMarkSpecTest >> testExample084 [
input := ' ```
aaa
```'.
expected := '```
aaa
```
'.
self assertExample.
]
{ #category : #'fenced code blocks' }
PPCommonMarkSpecTest >> testExample085 [
input := '```
aaa
```'.
expected := 'aaa
'.
self assertExample.
]
{ #category : #'fenced code blocks' }
PPCommonMarkSpecTest >> testExample086 [
input := ' ```
aaa
```'.
expected := 'aaa
'.
self assertExample.
]
{ #category : #'fenced code blocks' }
PPCommonMarkSpecTest >> testExample087 [
input := '```
aaa
```'.
expected := 'aaa
```
'.
self assertExample.
]
{ #category : #'fenced code blocks' }
PPCommonMarkSpecTest >> testExample088 [
input := '``` ```
aaa'.
expected := '
aaa
aaa
~~~ ~~
'.
self assertExample.
]
{ #category : #'fenced code blocks' }
PPCommonMarkSpecTest >> testExample090 [
input := 'foo
```
bar
```
baz'.
expected := 'foo
bar
baz
'. self assertExample. ] { #category : #'fenced code blocks' } PPCommonMarkSpecTest >> testExample091 [ input := 'foo --- ~~~ bar ~~~ # baz'. expected := 'bar
def foo(x)
return 3
end
'.
self assertExample.
]
{ #category : #'fenced code blocks' }
PPCommonMarkSpecTest >> testExample093 [
input := '~~~~ ruby startline=3 $%@#$
def foo(x)
return 3
end
~~~~~~~'.
expected := 'def foo(x)
return 3
end
'.
self assertExample.
]
{ #category : #'fenced code blocks' }
PPCommonMarkSpecTest >> testExample094 [
input := '````;
````'.
expected := '
'.
self assertExample.
]
{ #category : #'fenced code blocks' }
PPCommonMarkSpecTest >> testExample095 [
input := '``` aa ```
foo'.
expected := 'aa
foo
``` aaa
'.
self assertExample.
]
{ #category : #'html blocks' }
PPCommonMarkSpecTest >> testExample097 [
input := 'hi |
hi |
okay.
'. self assertExample. ] { #category : #'html blocks' } PPCommonMarkSpecTest >> testExample098 [ input := 'Markdown
<!-- foo -->
'.
self assertExample.
]
{ #category : #'html blocks' }
PPCommonMarkSpecTest >> testExample105 [
input := 'Foo
Foo
Emphasized text.
Hi |
Hi |
[foo]: /url ''title
with blank line''
[foo]
'. self assertExample. ] { #category : #'link references' } PPCommonMarkSpecTest >> testExample117 [ input := '[foo]: /url [foo]'. expected := ''. self assertExample. ] { #category : #'link references' } PPCommonMarkSpecTest >> testExample118 [ input := '[foo]: [foo]'. expected := '[foo]:
[foo]
'. self assertExample. ] { #category : #'link references' } PPCommonMarkSpecTest >> testExample119 [ input := '[foo] [foo]: url'. expected := '[foo] [foo]: url'. true ifTrue: [ ^ self flag: 'links before definitions not yet supported' ]. self assertExample. ] { #category : #'link references' } PPCommonMarkSpecTest >> testExample120 [ input := '[foo]: first [foo]: second [foo]'. expected := ''. self assertExample. ] { #category : #'link references' } PPCommonMarkSpecTest >> testExample121 [ input := '[FOO]: /url [Foo]'. expected := ''. self assertExample. ] { #category : #'link references' } PPCommonMarkSpecTest >> testExample122 [ input := '[ΑΓΩ]: /φου [αγω]'. expected := ''. true ifTrue: [ ^ self flag: 'escaping not yet supported...' ]. self assertExample. ] { #category : #'link references' } PPCommonMarkSpecTest >> testExample122a [ input := '[ΑΓΩ]: /foo [αγω]'. expected := ''. self assertExample. ] { #category : #'link references' } PPCommonMarkSpecTest >> testExample123 [ input := '[foo]: /url'. expected := ''. self assertExample. ] { #category : #'link references' } PPCommonMarkSpecTest >> testExample124 [ input := '[ foo ]: /url bar'. expected := 'bar
'. self assertExample. ] { #category : #'link references' } PPCommonMarkSpecTest >> testExample125 [ input := '[foo]: /url "title" ok'. expected := '[foo]: /url "title" ok
'. self assertExample. ] { #category : #'link references' } PPCommonMarkSpecTest >> testExample126 [ input := ' [foo]: /url "title" [foo]'. expected := '[foo]: /url "title"
[foo]
'. self assertExample. ] { #category : #'link references' } PPCommonMarkSpecTest >> testExample127 [ input := '``` [foo]: /url ``` [foo] '. expected := '[foo]: /url
[foo]
'. self assertExample. ] { #category : #'link references' } PPCommonMarkSpecTest >> testExample128 [ input := 'Foo [bar]: /baz [bar]'. expected := 'Foo [bar]: /baz
[bar]
'. self assertExample. ] { #category : #'link references' } PPCommonMarkSpecTest >> testExample129 [ input := '# [Foo] [foo]: /url > bar'. expected := ''. self assertExample. ] { #category : #'link references' } PPCommonMarkSpecTest >> testExample129a [ input := '[foo]: /url # [Foo] > bar'. expected := 'bar
'. self assertExample. ] { #category : #'link references' } PPCommonMarkSpecTest >> testExample130 [ input := '[foo]: /foo-url "foo" [bar]: /bar-url "bar" [baz]: /baz-url [foo], [bar], [baz]'. expected := ''. self assertExample. ] { #category : #'link references' } PPCommonMarkSpecTest >> testExample131 [ input := '[foo] > [foo]: /url'. expected := 'bar
'. self assertExample. ] { #category : #'link references' } PPCommonMarkSpecTest >> testExample131a [ input := '> [foo]: /url [foo]'. expected := '
'. self assertExample. ] { #category : #paragraphs } PPCommonMarkSpecTest >> testExample132 [ input := 'aaa bbb'. expected := '
aaa
bbb
'. self assertExample. ] { #category : #paragraphs } PPCommonMarkSpecTest >> testExample133 [ input := 'aaa bbb ccc ddd'. expected := 'aaa bbb
ccc ddd
'. self assertExample. ] { #category : #paragraphs } PPCommonMarkSpecTest >> testExample134 [ input := 'aaa bbb'. expected := 'aaa
bbb
'. self assertExample. ] { #category : #paragraphs } PPCommonMarkSpecTest >> testExample135 [ input := ' aaa bbb'. expected := 'aaa bbb
'. self assertExample. ] { #category : #paragraphs } PPCommonMarkSpecTest >> testExample136 [ input := 'aaa bbb ccc'. expected := 'aaa bbb ccc
'. self assertExample. ] { #category : #paragraphs } PPCommonMarkSpecTest >> testExample137 [ input := ' aaa bbb'. expected := 'aaa bbb
'. self assertExample. ] { #category : #paragraphs } PPCommonMarkSpecTest >> testExample138 [ input := ' aaa bbb'. expected := 'aaa
bbb
'. self assertExample. ] { #category : #paragraphs } PPCommonMarkSpecTest >> testExample139 [ input := 'aaa bbb '. expected := 'aaa
bbb
aaa
'. self assertExample. ] { #category : #'block quotes' } PPCommonMarkSpecTest >> testExample142 [ input := '># Foo >bar > baz'. expected := 'Foo
bar baz
'. self assertExample. ] { #category : #'block quotes' } PPCommonMarkSpecTest >> testExample143 [ input := ' > # Foo > bar > baz'. expected := 'Foo
bar baz
'. self assertExample. ] { #category : #'block quotes' } PPCommonMarkSpecTest >> testExample144 [ input := ' > # Foo > bar > baz'. expected := 'Foo
bar baz
> # Foo
> bar
> baz
'.
self assertExample.
]
{ #category : #'block quotes' }
PPCommonMarkSpecTest >> testExample145 [
input := '> # Foo
> bar
baz'.
expected := ''. self assertExample. ] { #category : #'block quotes' } PPCommonMarkSpecTest >> testExample146 [ input := '> bar baz > foo'. expected := 'Foo
bar baz
'. self assertExample. ] { #category : #'block quotes' } PPCommonMarkSpecTest >> testExample147 [ input := '> foo ---'. expected := 'bar baz foo
foo
- foo
foo
bar
'.
self assertExample.
]
{ #category : #'block quotes' }
PPCommonMarkSpecTest >> testExample150 [
input := '> ```
foo
```'.
expected := 'foo
'.
self assertExample.
]
{ #category : #'block quotes' }
PPCommonMarkSpecTest >> testExample151 [
input := '>'.
expected := ''. self assertExample. ] { #category : #'block quotes' } PPCommonMarkSpecTest >> testExample152 [ input := '> > > '. expected := '
'. self assertExample. ] { #category : #'block quotes' } PPCommonMarkSpecTest >> testExample153 [ input := '> > foo > '. expected := '
'. self assertExample. ] { #category : #'block quotes' } PPCommonMarkSpecTest >> testExample154 [ input := '> foo > bar'. expected := 'foo
foo
'. self assertExample. ] { #category : #'block quotes' } PPCommonMarkSpecTest >> testExample155 [ input := '> foo > bar'. expected := 'bar
'. self assertExample. ] { #category : #'block quotes' } PPCommonMarkSpecTest >> testExample156 [ input := '> foo > > bar'. expected := 'foo bar
'. self assertExample. ] { #category : #'block quotes' } PPCommonMarkSpecTest >> testExample157 [ input := 'foo > bar'. expected := 'foo
bar
foo
'. self assertExample. ] { #category : #'block quotes' } PPCommonMarkSpecTest >> testExample158 [ input := '> aaa *** > bbb'. expected := 'bar
aaa
'. self assertExample. ] { #category : #'block quotes' } PPCommonMarkSpecTest >> testExample159 [ input := '> bar baz'. expected := 'bbb
'. self assertExample. ] { #category : #'block quotes' } PPCommonMarkSpecTest >> testExample160 [ input := '> bar baz'. expected := 'bar baz
bar
baz
'. self assertExample. ] { #category : #'block quotes' } PPCommonMarkSpecTest >> testExample161 [ input := '> bar > baz'. expected := 'bar
baz
'. self assertExample. ] { #category : #'block quotes' } PPCommonMarkSpecTest >> testExample162 [ input := '> > > foo bar'. expected := ''. self assertExample. ] { #category : #'block quotes' } PPCommonMarkSpecTest >> testExample163 [ input := '>>> foo > bar >>baz'. expected := 'foo bar
'. self assertExample. ] { #category : #'block quotes' } PPCommonMarkSpecTest >> testExample164 [ input := '> code > not code'. expected := 'foo bar baz
code
'. self assertExample. ] { #category : #'list items' } PPCommonMarkSpecTest >> testExample165 [ input := 'A paragraph with two lines. indented code > A block quote.'. expected := 'not code
A paragraph with two lines.
indented code
'. self assertExample. ] { #category : #'list items' } PPCommonMarkSpecTest >> testExample166 [ input := '1. A paragraph with two lines. indented code > A block quote.'. expected := 'A block quote.
A paragraph with two lines.
indented code
A block quote.
two
'. self assertExample. ] { #category : #'list items' } PPCommonMarkSpecTest >> testExample168 [ input := '- one two'. expected := 'one
two
two
'.
self assertExample.
]
{ #category : #'list items' }
PPCommonMarkSpecTest >> testExample170 [
input := ' - one
two'.
expected := 'one
two
'. self assertExample. ] { #category : #'list items' } PPCommonMarkSpecTest >> testExample172 [ input := '>>- one >> > > two'. expected := '
one
two
'. self assertExample. ] { #category : #'list items' } PPCommonMarkSpecTest >> testExample173 [ input := '-one 2.two'. expected := '
- one
two
-one
2.two
'. self assertExample. ] { #category : #'list items' } PPCommonMarkSpecTest >> testExample174 [ input := '- foo bar - foo bar - ``` foo bar ``` - baz + ``` foo bar ```'. expected := 'foo
bar
foo
bar
foo
bar
baz
foo
bar
foo
bar
baz
bam
foo
bar
foo
bar
indented code
paragraph
more code
'.
self assertExample.
]
{ #category : #'list items' }
PPCommonMarkSpecTest >> testExample179 [
input := '1. indented code
paragraph
more code'.
expected := 'indented code
paragraph
more code
indented code
paragraph
more code
foo
bar
'. self assertExample. ] { #category : #'list items' } PPCommonMarkSpecTest >> testExample182 [ input := '- foo bar'. expected := 'bar
'. self assertExample. ] { #category : #'list items' } PPCommonMarkSpecTest >> testExample183 [ input := '- foo bar'. expected := 'foo
bar
bar
baz
A paragraph with two lines.
indented code
A block quote.
A paragraph with two lines.
indented code
A block quote.
A paragraph with two lines.
indented code
A block quote.
1. A paragraph
with two lines.
indented code
> A block quote.
'.
self assertExample.
]
{ #category : #'list items' }
PPCommonMarkSpecTest >> testExample193 [
input := ' 1. A paragraph
with two lines.
indented code
> A block quote.'.
expected := 'A paragraph with two lines.
indented code
A block quote.
'. self assertExample. ] { #category : #'list items' } PPCommonMarkSpecTest >> testExample196 [ input := '> 1. > Blockquote > continued here.'. expected := '
Blockquote continued here.
'. self assertExample. ] { #category : #'list items' } PPCommonMarkSpecTest >> testExample197 [ input := '- foo - bar - baz'. expected := '
Blockquote continued here.
Foo
The number of windows in my house is
foo
bar
bar
bim
'.
self assertExample.
]
{ #category : #lists }
PPCommonMarkSpecTest >> testExample211 [
input := '- foo
- bar
- baz
- bim'.
expected := 'foo
notcode
foo
code
'.
self assertExample.
]
{ #category : #lists }
PPCommonMarkSpecTest >> testExample213 [
input := '- a
- b
- c
- d
- e
- f
- g
'.
expected := 'a
b
c
a
c
a
b
c
d
a
b
d
b
b
c
b
b
c
foo
bar
foo
baz
a
d
hi
lo`
!"#$%&''()*+,-./:;<=>?@[\]^_`{|}~
'. self assertExample. ] { #category : #'backslash escapes' } PPCommonMarkSpecTest >> testExample229 [ input := '\A\a\ \3\φ\«'. expected := '\A\a\ \3\φ\«
'. self assertExample. ] { #category : #'backslash escapes' } PPCommonMarkSpecTest >> testExample230 [ input := '\*not emphasized* \*not emphasized* <br/> not a tag [not a link](/foo) `not code` 1. not a list * not a list # not a header [foo]: /url "not a reference"
'. self assertExample. ] { #category : #'backslash escapes' } PPCommonMarkSpecTest >> testExample231 [ input := '\\*emphasis*'. expected := '\emphasis
'. self assertExample. ] { #category : #'backslash escapes' } PPCommonMarkSpecTest >> testExample232 [ input := 'foo\ bar'. expected := 'foo
bar
\[\`
\[\]
'.
self assertExample.
]
{ #category : #'backslash escapes' }
PPCommonMarkSpecTest >> testExample235 [
input := '~~~
\[\]
~~~'.
expected := '\[\]
'.
self assertExample.
]
{ #category : #'backslash escapes' }
PPCommonMarkSpecTest >> testExample236 [
input := 'foo
'.
self assertExample.
]
{ #category : #entitites }
PPCommonMarkSpecTest >> testExample241 [
input := ' & © Æ Ď'.
expected := '& © Æ Ď
'. self assertExample. ] { #category : #entitites } PPCommonMarkSpecTest >> testExample242 [ input := '# Ӓ Ϡ'. expected := '# Ӓ Ϡ
'. self assertExample. ] { #category : #entitites } PPCommonMarkSpecTest >> testExample243 [ input := '" ആ ಫ'. expected := '" ആ ಫ
'. self assertExample. ] { #category : #entitites } PPCommonMarkSpecTest >> testExample244 [ input := '  &x; &ThisIsWayTooLongToBeAnEntityIsntIt; &hi?;'. expected := '  &x; &#; &#x; &ThisIsWayTooLongToBeAnEntityIsntIt; &hi?;
'. self assertExample. ] { #category : #entitites } PPCommonMarkSpecTest >> testExample245 [ input := '©'. expected := '©
'. self assertExample. ] { #category : #entitites } PPCommonMarkSpecTest >> testExample246 [ input := '&MadeUpEntity;'. expected := '&MadeUpEntity;
'. self assertExample. ] { #category : #entitites } PPCommonMarkSpecTest >> testExample247 [ input := ''. expected := ''. self assertExample. ] { #category : #entitites } PPCommonMarkSpecTest >> testExample248 [ input := '[foo](/föö "föö")'. expected := ''. self assertExample. ] { #category : #entitites } PPCommonMarkSpecTest >> testExample249 [ input := '[foo] [foo]: /föö "föö"'. expected := ''. self assertExample. ] { #category : #entitites } PPCommonMarkSpecTest >> testExample249a [ input := '[foo]: /föö "föö" [foo]'. expected := ''. self assertExample. ] { #category : #entitites } PPCommonMarkSpecTest >> testExample250 [ input := '``` föö foo ```'. expected := 'foo
'.
self assertExample.
]
{ #category : #entitites }
PPCommonMarkSpecTest >> testExample251 [
input := '`föö`'.
expected := 'föö
föfö
'.
self assertExample.
]
{ #category : #'code spans' }
PPCommonMarkSpecTest >> testExample253 [
input := '`foo`'.
expected := 'foo
foo ` bar
``
foo
foo bar baz
foo `` bar
foo\
bar`
*foo*
[not a link](/foo
)
<a href="
">`
<http://foo.bar.
baz>`
```foo``
'. self assertExample. ] { #category : #'code spans' } PPCommonMarkSpecTest >> testExample267 [ input := '`foo'. expected := '`foo
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample268 [ input := '*foo bar*'. expected := 'foo bar
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample269 [ input := 'a * foo bar*'. expected := 'a * foo bar*
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample270 [ input := 'a*"foo"*'. expected := 'a*"foo"*
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample271 [ input := '* a *'. expected := '* a *
'. true ifTrue: [ ^ self flag: 'bad example? this is a list...' ]. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample272 [ input := 'foo*bar*'. expected := 'foobar
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample273 [ input := '5*6*78'. expected := '5678
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample274 [ input := '_foo bar_'. expected := 'foo bar
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample275 [ input := '_ foo bar_'. expected := '_ foo bar_
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample276 [ input := 'a_"foo"_'. expected := 'a_"foo"_
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample277 [ input := 'foo_bar_'. expected := 'foo_bar_
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample278 [ input := '5_6_78'. expected := '5_6_78
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample279 [ input := 'пристаням_стремятся_'. expected := 'пристаням_стремятся_
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample280 [ input := 'aa_"bb"_cc'. expected := 'aa_"bb"_cc
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample281 [ input := 'foo-_(bar)_'. expected := 'foo-(bar)
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample282 [ input := '_foo*'. expected := '_foo*
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample283 [ input := '*foo bar *'. expected := '*foo bar *
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample284 [ input := '*foo bar *'. expected := '*foo bar
*(*foo)
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample286 [ input := '*(*foo*)*'. expected := '(foo)
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample287 [ input := '*foo*bar'. expected := 'foobar
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample288 [ input := '_foo bar _'. expected := '_foo bar _
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample289 [ input := '_(_foo)'. expected := '_(_foo)
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample290 [ input := '_(_foo_)_'. expected := '(foo)
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample291 [ input := '_foo_bar'. expected := '_foo_bar
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample292 [ input := '_пристаням_стремятся'. expected := '_пристаням_стремятся
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample293 [ input := '_foo_bar_baz_'. expected := 'foo_bar_baz
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample294 [ input := '_(bar)_.'. expected := '(bar).
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample295 [ input := '**foo bar**'. expected := 'foo bar
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample296 [ input := '** foo bar**'. expected := '** foo bar**
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample297 [ input := 'a**"foo"**'. expected := 'a**"foo"**
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample298 [ input := 'foo**bar**'. expected := 'foobar
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample299 [ input := '__foo bar__'. expected := 'foo bar
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample300 [ input := '__ foo bar__'. expected := '__ foo bar__
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample301 [ input := '__ foo bar__'. expected := '__ foo bar__
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample302 [ input := 'a__"foo"__'. expected := 'a__"foo"__
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample303 [ input := 'foo__bar__'. expected := 'foo__bar__
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample304 [ input := '5__6__78'. expected := '5__6__78
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample305 [ input := 'пристаням__стремятся__'. expected := 'пристаням__стремятся__
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample306 [ input := '__foo, __bar__, baz__'. expected := 'foo, bar, baz
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample307 [ input := 'foo-_(bar)_'. expected := 'foo-(bar)
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample308 [ input := '**foo bar **'. expected := '**foo bar **
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample309 [ input := '**(**foo)'. expected := '**(**foo)
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample310 [ input := '*(**foo**)*'. expected := '(foo)
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample311 [ input := '**Gomphocarpus (*Gomphocarpus physocarpus*, syn. *Asclepias physocarpa*)**'. expected := 'Gomphocarpus (Gomphocarpus physocarpus, syn. Asclepias physocarpa)
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample312 [ input := '**foo "*bar*" foo**'. expected := 'foo "bar" foo
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample313 [ input := '**foo**bar'. expected := 'foobar
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample314 [ input := '__foo bar __'. expected := '__foo bar __
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample315 [ input := '__(__foo)'. expected := '__(__foo)
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample316 [ input := '_(__foo__)_'. expected := '(foo)
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample317 [ input := '__foo__bar'. expected := '__foo__bar
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample318 [ input := '__пристаням__стремятся'. expected := '__пристаням__стремятся
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample319 [ input := '__foo__bar__baz__'. expected := 'foo__bar__baz
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample320 [ input := '_(bar)_.'. expected := '(bar).
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample321 [ input := '*foo [bar](/url)*'. expected := 'foo bar
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample322 [ input := '*foo bar*'. expected := 'foo bar
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample323 [ input := '_foo __bar__ baz_'. expected := 'foo bar baz
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample324 [ input := '_foo _bar_ baz_'. expected := 'foo bar baz
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample325 [ input := '__foo_ bar_'. expected := 'foo bar
'. self flag: 'JK: inline not yet implemented properly' "self assertExample." ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample326 [ input := '*foo *bar**'. expected := 'foo bar
'. self flag: 'JK: inline not yet implemented properly' "self assertExample." ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample327 [ input := '*foo **bar** baz*'. expected := 'foo bar baz
'. self assertExample. ] { #category : #emphasis } PPCommonMarkSpecTest >> testExample328 [ input := '*foo**bar**baz*'. expected := 'foobarbaz
'. "JK: inline not yet implemented properly" "self assertExample." ] { #category : #links } PPCommonMarkSpecTest >> testExample396 [ input := '[link](/uri "title")'. expected := ''. self assertExample. ] { #category : #links } PPCommonMarkSpecTest >> testExample397 [ input := '[link](/uri)'. expected := ''. self assertExample. ] { #category : #links } PPCommonMarkSpecTest >> testExample398 [ input := '[link]()'. expected := ''. self assertExample. ] { #category : #links } PPCommonMarkSpecTest >> testExample399 [ input := '[link](<>)'. expected := ''. self assertExample. ] { #category : #links } PPCommonMarkSpecTest >> testExample400 [ input := '[link](/my uri)'. expected := '[link](/my uri)
'. self assertExample. ] { #category : #links } PPCommonMarkSpecTest >> testExample401 [ input := '[link]([link](foo bar)
'. self assertExample. ] { #category : #links } PPCommonMarkSpecTest >> testExample403 [ input := '[link]([link](
[link](foo(and(bar)))
'. self assertExample. ] { #category : #links } PPCommonMarkSpecTest >> testExample406 [ input := '[link](foo(and\(bar\)))'. expected := ''. self assertExample. ] { #category : #links } PPCommonMarkSpecTest >> testExample407 [ input := '[link]([link](/url "title "and" title")
'. self assertExample. ] { #category : #links } PPCommonMarkSpecTest >> testExample414 [ input := '[link](/url ''title "and" title'')'. expected := ''. self assertExample. ] { #category : #links } PPCommonMarkSpecTest >> testExample415 [ input := '[link]( /uri "title" )'. expected := ''. self assertExample. ] { #category : #links } PPCommonMarkSpecTest >> testExample416 [ input := '[link] (/uri)'. expected := '[link] (/uri)
'. self assertExample. ] { #category : #links } PPCommonMarkSpecTest >> testExample417 [ input := '[link [foo [bar]]](/uri)'. expected := ''. self assertExample. ] { #category : #links } PPCommonMarkSpecTest >> testExample418 [ input := '[link] bar](/uri)'. expected := '[link] bar](/uri)
'. self assertExample. ] { #category : #links } PPCommonMarkSpecTest >> testExample419 [ input := '[link [bar](/uri)'. expected := '[link bar
'. self assertExample. ] { #category : #links } PPCommonMarkSpecTest >> testExample420 [ input := '[link \[bar](/uri)'. expected := ''. self assertExample. ] { #category : #links } PPCommonMarkSpecTest >> testExample421 [ input := '[link *foo **bar** `#`*](/uri)'. expected := ''. self assertExample. ] { #category : #links } PPCommonMarkSpecTest >> testExample422 [ input := '[![moon](moon.jpg)](/uri)'. expected := ''. self flag: 'JK: inline not yet implemented properly' "self assertExample." ] { #category : #links } PPCommonMarkSpecTest >> testExample423 [ input := '[foo [bar](/uri)](/uri)'. expected := '[foo bar](/uri)
'. self assertExample. ] { #category : #links } PPCommonMarkSpecTest >> testExample424 [ input := '[foo *[bar [baz](/uri)](/uri)*](/uri)'. expected := '[foo [bar baz](/uri)](/uri)
'. self assertExample. ] { #category : #links } PPCommonMarkSpecTest >> testExample425 [ input := '![[[foo](uri1)](uri2)](uri3)'. expected := ''. self flag: 'JK: inline not yet implemented properly' "self assertExample." ] { #category : #links } PPCommonMarkSpecTest >> testExample426 [ input := '*[foo*](/uri)'. expected := '*foo*
'. self assertExample. ] { #category : #links } PPCommonMarkSpecTest >> testExample427 [ input := '[foo *bar](baz*)'. expected := ''. self flag: 'JK: inline not yet implemented properly' "self assertExample." ] { #category : #links } PPCommonMarkSpecTest >> testExample428 [ input := '*foo [bar* baz]'. expected := 'foo [bar baz]
'. self assertExample. ] { #category : #links } PPCommonMarkSpecTest >> testExample429 [ input := '[foo[foo
[foo](/uri)
[foohttp://example.com/?search=](uri)
'. self flag: 'JK: inline not yet implemented properly' "self assertExample." ] { #category : #links } PPCommonMarkSpecTest >> testExample432 [ input := '[foo][bar] [bar]: /url "title"'. expected := ''. self flag: 'JK: inline not yet implemented properly' "self assertExample." ] { #category : #links } PPCommonMarkSpecTest >> testExample433 [ input := '[link [foo [bar]]][ref] [ref]: /uri'. expected := ''. self flag: 'JK: inline not yet implemented properly' "self assertExample." ] { #category : #autolinks } PPCommonMarkSpecTest >> testExample493 [ input := 'http://foo.bar.baz/test?q=hello&id=22&boolean
'. self assertExample. ] { #category : #autolinks } PPCommonMarkSpecTest >> testExample495 [ input := '<http://foo.bar/baz bim>
'. self assertExample. ] { #category : #autolinks } PPCommonMarkSpecTest >> testExample498 [ input := '<foo+@bar.example.com>
'. self assertExample. ] { #category : #autolinks } PPCommonMarkSpecTest >> testExample502 [ input := '<>'. expected := '<>
'. self assertExample. ] { #category : #autolinks } PPCommonMarkSpecTest >> testExample503 [ input := '<heck://bing.bong>
'. self assertExample. ] { #category : #autolinks } PPCommonMarkSpecTest >> testExample504 [ input := '< http://foo.bar >'. expected := '< http://foo.bar >
'. self assertExample. ] { #category : #autolinks } PPCommonMarkSpecTest >> testExample505 [ input := '<foo.bar.baz>
'. self assertExample. ] { #category : #autolinks } PPCommonMarkSpecTest >> testExample506 [ input := '<localhost:5001/foo>
'. self assertExample. ] { #category : #autolinks } PPCommonMarkSpecTest >> testExample507 [ input := 'http://example.com'. expected := 'http://example.com
'. self assertExample. ] { #category : #autolinks } PPCommonMarkSpecTest >> testExample508 [ input := 'foo@bar.example.com'. expected := 'foo@bar.example.com
'. self assertExample. ] { #category : #'raw html' } PPCommonMarkSpecTest >> testExample509 [ input := '"'' _boolean zoop:33=zoop:33 />
'. self assertExample. ] { #category : #'raw html' } PPCommonMarkSpecTest >> testExample513 [ input := '<33> <__>'. expected := '<33> <__>
'. self assertExample. ] { #category : #'raw html' } PPCommonMarkSpecTest >> testExample514 [ input := ''. expected := '<a h*#ref="hi">
'. self assertExample. ] { #category : #'raw html' } PPCommonMarkSpecTest >> testExample515 [ input := ''. expected := '</a href="foo">
'. self assertExample. ] { #category : #'raw html' } PPCommonMarkSpecTest >> testExample520 [ input := 'foo '. expected := 'foo
'. self assertExample. ] { #category : #'raw html' } PPCommonMarkSpecTest >> testExample521 [ input := 'foo '. expected := 'foo <!-- not a comment -- two hyphens -->
'. self assertExample. ] { #category : #'raw html' } PPCommonMarkSpecTest >> testExample522 [ input := 'foo foo --> foo '. expected := 'foo <!--> foo -->
foo <!-- foo--->
'. self assertExample. ] { #category : #'raw html' } PPCommonMarkSpecTest >> testExample523 [ input := 'foo '. expected := 'foo
'. self assertExample. ] { #category : #'raw html' } PPCommonMarkSpecTest >> testExample524 [ input := 'foo '. expected := 'foo
'. self assertExample. ] { #category : #'raw html' } PPCommonMarkSpecTest >> testExample525 [ input := 'foo &<]]>'. expected := 'foo &<]]>
'. self assertExample. ] { #category : #'raw html' } PPCommonMarkSpecTest >> testExample526 [ input := ''. expected := ''. self assertExample. ] { #category : #'raw html' } PPCommonMarkSpecTest >> testExample527 [ input := ''. expected := ''. self assertExample. ] { #category : #'raw html' } PPCommonMarkSpecTest >> testExample528 [ input := ''. expected := '<a href=""">
'. self assertExample. ] { #category : #'hard line breaks' } PPCommonMarkSpecTest >> testExample529 [ input := 'foo baz'. expected := 'foo
baz
foo
baz
foo
baz
foo
bar
foo
bar
foo
bar
foo
bar
code span
code\ span
foo\
'. self assertExample. ] { #category : #'hard line breaks' } PPCommonMarkSpecTest >> testExample541 [ input := 'foo '. expected := 'foo
'. self assertExample. ] { #category : #'hard line breaks' } PPCommonMarkSpecTest >> testExample542 [ input := '### foo\'. expected := 'foo baz
'. self assertExample. ] { #category : #'soft line breaks' } PPCommonMarkSpecTest >> testExample545 [ input := 'foo baz'. expected := 'foo baz
'. self assertExample. ] { #category : #'textual content' } PPCommonMarkSpecTest >> testExample546 [ input := 'hello $.;''there'. expected := 'hello $.;''there
'. self assertExample. ] { #category : #'textual content' } PPCommonMarkSpecTest >> testExample547 [ input := 'Foo χρῆν'. expected := 'Foo χρῆν
'. self assertExample. ] { #category : #'textual content' } PPCommonMarkSpecTest >> testExample548 [ input := 'Multiple spaces'. expected := 'Multiple spaces
'. self assertExample. ] { #category : #'as yet unclassified' } PPCommonMarkSpecTest >> testExtra1 [ input := '# Foo bar'. expected := 'bar
'. self assertExample. ] { #category : #'as yet unclassified' } PPCommonMarkSpecTest >> testExtra2 [ input := '- # Foo bar'. expected := '[foo]
'. self assertExample. ] { #category : #'as yet unclassified' } PPCommonMarkSpecTest >> testExtra4 [ input := '*[foo)*]'. expected := '[foo)]
'. self assertExample. ] { #category : #paragraphs } PPCommonMarkSpecTest >> testParagraphExtra1 [ input := ' aaa ***'. expected := 'aaa