mdsh
spec.Each H4 section is converted into a test case by build.rs
script. Each section
in spec.clear.md
must correspond to the same section in spec.processed.md
.
spec.processed.md
is a version of this file after one mdsh
pass.
spec.processed.md
must be idempotent, i.e. any next passes result in the same content.
mdsh --clean
pass on spec.processed.md
must result in spec.clear.md
.
> $ echo 'I am *markdown*'
I am markdown
I am *markdown*
Hi, I am markdown
echo 'I am *markdown*'
I am markdown
I am markdown
Hi, I am markdown
I am markdown
I’m gen-md.sh
> < ./samples/example.md
this is part of the example.md file
./samples/example.md
this is part of the example.md file
this is part of the example.md file
this is part of the example.md file
this is part of the example.md file
> yaml $ echo 'foo: true'
foo: true
foo: true
foo: true # hmm
echo 'foo: true'
foo: true
foo: true
foo: true # hmm
foo: true
foo: bar
> yaml < ./samples/example.yml
foo: bar
./samples/example.yml
foo: bar
foo: bar
foo: bar
foo: bar
> yaml foo: true
foo: true
foo: true
foo: true
foo: true
foo: true
./samples/example.yml
! $ echo 'foo=bar'
> $ echo "\`\$foo\` is $foo"
$foo
is bar
foo=bar
> $ echo "\`\$foo\` is $foo"
$foo
is bar
echo 'foo=bar'
> $ echo "\`\$foo\` is $foo"
$foo
is bar
> $ echo "\`\$foo\` is $foo"
$foo
is bar
> $ echo "\`\$foo\` is $foo"
$foo
is bar
> $ echo "\`\$foo\` is $foo"
$foo
is bar
> $ echo "\`\$foo\` is $foo"
$foo
is bar
! < ./samples/example.env
> $ echo "\`\$foo\` is $foo"
$foo
is bar
./samples/example.env
> $ echo "\`\$foo\` is $foo"
$foo
is bar
> $ echo "\`\$foo\` is $foo"
$foo
is bar
> $ echo "\`\$foo\` is $foo"
$foo
is bar
> $ echo "\`\$foo\` is $foo"
$foo
is bar
! foo=bar
> $ echo "\`\$foo\` is $foo"
$foo
is bar
foo=bar
> $ echo "\`\$foo\` is $foo"
$foo
is bar
> $ echo "\`\$foo\` is $foo"
$foo
is bar
> $ echo "\`\$foo\` is $foo"
$foo
is bar
The end!