diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-06-15 19:15:48 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-06-15 19:15:52 +0100 |
commit | 36cf5c88cfe5a3141eaa784905f3a3bcc0f7f70c (patch) | |
tree | 2bcb1ca4b3bde910d5ac5bcad602535688045b47 /fable-cat-poc/test.md | |
parent | 6e610f2e840ab2f09b82bc0742037511c03819a7 (diff) | |
download | fable-poc-36cf5c88cfe5a3141eaa784905f3a3bcc0f7f70c.tar.gz |
Proof of concept extraction state machine
Diffstat (limited to 'fable-cat-poc/test.md')
-rw-r--r-- | fable-cat-poc/test.md | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/fable-cat-poc/test.md b/fable-cat-poc/test.md new file mode 100644 index 0000000..384ee94 --- /dev/null +++ b/fable-cat-poc/test.md @@ -0,0 +1,57 @@ +# Testing for fable-cat-poc + +Essentially we're after checking the following properties: + +1. Only fenced code blocks labelled `fable` will be consumed +2. Those code blocks must be at the top level +3. Only headers at the top level will be consumed +4. A header which is at the same or a higher level than the last scenario + will be used to indicate the end of a scenario +5. Only the header for the scenario will be output +6. The code blocks for a scenario will be merged by the test tool + +# First example + +```fable +This content doesn't matter for now +``` + +# Second example + +## Second layer + +```fable +This content also doesn't matter for now +``` + +## Third example + +```fable +This is a third unimportant block of text +``` + +### This header is ignored + +#### This header is also ignored + +### Despite being higher than the above, this header doesn't stop the scenario + +- # This is a top level header yet is ignored by fable. + +> # Block quoted header ignored + +```fable +This block is a part of the third example +``` + +# This header stopped the above fable + +## This header is used as the fourth fable scenario name + +```fable +A fourth irrelevant block of text +``` + +- ```fable + Despite being a fenced block, this is ignored + ``` |