Pandoc (with slightly changed indents):
.
Term 1
: Definition 1
Term 2 with *inline markup*
: Definition 2
{ some code, part of Definition 2 }
Third paragraph of definition 2.
.
- Term 1
-
Definition 1
- Term 2 with inline markup
-
Definition 2
{ some code, part of Definition 2 }
Third paragraph of definition 2.
.
Pandoc again:
.
Term 1
: Definition
with lazy continuation.
Second paragraph of the definition.
.
- Term 1
-
Definition
with lazy continuation.
Second paragraph of the definition.
.
Well, I might just copy-paste the third one while I'm at it:
.
Term 1
~ Definition 1
Term 2
~ Definition 2a
~ Definition 2b
.
- Term 1
- Definition 1
- Term 2
- Definition 2a
- Definition 2b
.
Now, with our custom ones. Spaces after a colon:
.
Term 1
: paragraph
Term 2
: code block
.
- Term 1
- paragraph
- Term 2
-
code block
.
There should be something after a colon by the way:
.
Non-term 1
:
Non-term 2
:
.
Non-term 1
:
Non-term 2
:
.
List is tight iff all dts are tight:
.
Term 1
: foo
: bar
Term 2
: foo
: bar
.
- Term 1
-
foo
-
bar
- Term 2
-
foo
-
bar
.
Regression test (first paragraphs shouldn't be tight):
.
Term 1
: foo
bar
Term 2
: foo
.
- Term 1
-
foo
bar
Term 2
-
foo
.
Definition lists should be second last in the queue. Exemplī grātiā, this isn't a valid one:
.
# test
: just a paragraph with a colon
.
test
: just a paragraph with a colon
.
Nested definition lists:
.
test
: foo
: bar
: baz
: bar
: foo
.
- test
-
- foo
-
- bar
- baz
- bar
- foo
.
Regression test, tabs
.
Term 1
: code block
.
- Term 1
-
code block
.
Regression test (blockquote inside deflist)
.
foo
: > bar
: baz
.
- foo
-
bar
- baz
.
Coverage, 1 blank line
.
test
.
test
.
Coverage, 2 blank lines
.
test
.
test
.