File: compat.t

package info (click to toggle)
discount 2.2.7-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,004 kB
  • sloc: ansic: 5,707; pascal: 1,027; sh: 287; makefile: 208
file content (29 lines) | stat: -rw-r--r-- 559 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
. tests/functions.sh

title "markdown 1.0 compatibility"

rc=0
MARKDOWN_FLAGS=

LINKY='[this] is a test

[this]: /this'

try 'implicit reference links' "$LINKY" '<p><a href="/this">this</a> is a test</p>'
try -f1.0 'implicit reference links (-f1.0)' "$LINKY" '<p>[this] is a test</p>'

WSP=' '
WHITESPACE="
    white space$WSP
    and more"

try 'trailing whitespace' "$WHITESPACE" '<pre><code>white space ''
and more
</code></pre>'

try -f1.0 'trailing whitespace (-f1.0)' "$WHITESPACE" '<pre><code>white space''
and more
</code></pre>'

summary $0
exit $rc