summaryrefslogtreecommitdiff
path: root/riki.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-07-12 17:25:00 +0000
committerLars Wirzenius <liw@liw.fi>2022-07-12 17:25:00 +0000
commit627a942fe649d8f2ac4bd30143e7e51336622f19 (patch)
tree2dc452b2b0feb3909c459bdbab4ac2b5bf296458 /riki.md
parent04e156a6ab6d18f46d34632756ca418ec8b945df (diff)
parent516b79560805e5d260c15edaecd7f5431501134d (diff)
downloadriki-627a942fe649d8f2ac4bd30143e7e51336622f19.tar.gz
Merge branch 'markdown-features' into 'main'
test: add scenario for quoted block See merge request larswirzenius/riki!11
Diffstat (limited to 'riki.md')
-rw-r--r--riki.md117
1 files changed, 117 insertions, 0 deletions
diff --git a/riki.md b/riki.md
index baee12d..4aca1f0 100644
--- a/riki.md
+++ b/riki.md
@@ -66,6 +66,24 @@ There are two paragraphs.
~~~
+### Quoted block
+
+_Requirement: Given a Markdown file with an quoted block of text, the
+output must have a blockquote element.
+
+~~~scenario
+given an installed riki
+given file site/page.mdwn from blockquote
+when I run riki site output
+then AST of site/page.mdwn matches that of output/page.html
+~~~
+
+
+~~~{#blockquote .file}
+> This is a quoted block.
+~~~
+
+
### Indented code block
_Requirement: Given a Markdown file with an indented code block, the
@@ -214,6 +232,105 @@ then AST of site/page.mdwn matches that of output/page.html
There is `code` lurking here.
~~~
+### Table
+
+_Requirement: Markup of a table result in a table element in HTML
+output._
+
+**Note: This is disabled. Pandoc doesn't seem to handle the HTML table OK.***
+
+~~~
+given an installed riki
+given file site/page.mdwn from table
+when I run riki site output
+then AST of site/page.mdwn matches that of output/page.html
+~~~
+
+
+~~~{#table .file}
+| foo | bar |
+| --- | --- |
+| 1 | 2 |
+~~~
+
+### Horizontal rule
+
+_Requirement: Markup of a horizontal rule must result in hr element in
+HTML output._
+
+~~~scenario
+given an installed riki
+given file site/page.mdwn from rule
+when I run riki site output
+then AST of site/page.mdwn matches that of output/page.html
+~~~
+
+
+~~~{#rule .file}
+foo
+
+---------------------------------------------------------------------------------------
+
+bar
+~~~
+
+### Unordered list
+
+_Requirement: Markup of an unordered list must result in a ul element
+in HTML output._
+
+~~~scenario
+given an installed riki
+given file site/page.mdwn from ul
+when I run riki site output
+then AST of site/page.mdwn matches that of output/page.html
+~~~
+
+
+~~~{#ul .file}
+* first
+* second
+~~~
+
+### Ordered list
+
+_Requirement: Markup of an ordered list must result in an ol element
+in HTML output._
+
+**Note: This is disabled. Pandoc doesn't seem to parse the HTML list
+the same as the Markdown.***
+
+~~~
+given an installed riki
+given file site/page.mdwn from ol
+when I run riki site output
+then AST of site/page.mdwn matches that of output/page.html
+~~~
+
+
+~~~{#ol .file}
+1. first
+2. second
+~~~
+
+### Task list
+
+_Requirement: Markup of a task list must result in a ul element
+in HTML output._
+
+~~~scenario
+given an installed riki
+given file site/page.mdwn from tasklist
+when I run riki site output
+then AST of site/page.mdwn matches that of output/page.html
+~~~
+
+
+~~~{#tasklist .file}
+* [ ] not done
+* [x] done
+~~~
+
## Input files other than Markdown
_Requirement: Input files that aren't Markdown files must be copied