File: basic

package info (click to toggle)
node-marked 0.8.0%2Bds%2Brepack-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,948 kB
  • sloc: javascript: 3,640; sh: 16; makefile: 16
file content (23 lines) | stat: -rwxr-xr-x 378 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
set -efu

cd $AUTOPKGTEST_TMP
cat << EOF | marked -o test.html
An h1 header
============

Paragraphs are separated by a blank line.

2nd paragraph. *Italic*, **bold**. Itemized lists
look like:

  * this one
  * that one

EOF

md=$(md5sum test.html | cut -d" " -f 1)
exp="e30f31a4fbb8c06ba6077034ecae3cde"
echo "expecting $exp, got $md"
test "$md" = "$exp" 
echo "ok"