File: basic

package info (click to toggle)
node-marked 0.3.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 900 kB
  • ctags: 39
  • sloc: sh: 31; makefile: 20
file content (23 lines) | stat: -rwxr-xr-x 369 bytes parent folder | download | duplicates (4)
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 $ADTTMP
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"