From d94416e0be8003e3636cd097c4fa28e5bec5fee0 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 27 May 2025 07:15:19 +0200 Subject: check tests renedered as CommonMark (not HTML) --- Makefile | 13 ++++++++----- test/block-cluster_scope.md.md | 17 +++++++++++++++++ test/block-siblings_scope.md.md | 11 +++++++++++ test/block-siblings_scope_list.md.md | 3 +++ test/block-tree_scope.md.md | 10 ++++++++++ test/block_scope.md.md | 3 +++ test/block_scope_list.md.md | 3 +++ test/ex_paragraph.md.md | 6 ++++++ test/ex_title_and_list.md.md | 13 +++++++++++++ test/link_definition_scope.md.md | 4 ++++ test/span_scope.md.md | 4 ++++ 11 files changed, 82 insertions(+), 5 deletions(-) create mode 100644 test/block-cluster_scope.md.md create mode 100644 test/block-siblings_scope.md.md create mode 100644 test/block-siblings_scope_list.md.md create mode 100644 test/block-tree_scope.md.md create mode 100644 test/block_scope.md.md create mode 100644 test/block_scope_list.md.md create mode 100644 test/ex_paragraph.md.md create mode 100644 test/ex_title_and_list.md.md create mode 100644 test/link_definition_scope.md.md create mode 100644 test/span_scope.md.md diff --git a/Makefile b/Makefile index 2fbdabc..f81023b 100644 --- a/Makefile +++ b/Makefile @@ -4,9 +4,9 @@ PDF_DOCUMENTS = _site/report.pdf include _make/*.mk -FILTER = _extensions/ruc-play/sem-md/sem-md.lua +FILTER = sem-md/sem-md.lua -DIFFTESTS = $(patsubst %.md,%,$(wildcard test/*.md)) +DIFFTESTS = $(patsubst %.md.md,%,$(wildcard test/*.md.md)) _which = $(shell command -v $1 >/dev/null 2>&1 && echo $1 $2) DIFF = $(strip $(or \ @@ -53,9 +53,12 @@ $(WORKFLOW_DIAGRAMS): %.svg: %.cwl check: $(DIFFTESTS:%=check-%) luacheck --quiet $(FILTER) -$(DIFFTESTS:%=check-%): check-%: %.md - -$(strip $(PANDOC) --lua-filter $(FILTER) --wrap preserve < $< \ - | $(DIFF) $*.plain.html /dev/stdin) +#$(DIFFTESTS:%=check-%): check-%: %.md +# -$(strip $(PANDOC) --lua-filter $(FILTER) --wrap preserve < $< \ +# | $(DIFF) $*.plain.html /dev/stdin) +$(DIFFTESTS:%=check-%): check-%: %.md %.md.md + -$(strip $(PANDOC) --to commonmark --lua-filter $(FILTER) --wrap preserve < $< \ + | $(DIFF) $*.md.md /dev/stdin) $(DIFFTESTS:%=debug-%): debug-%: %.md $(PANDOC) --to native --lua-filter $(FILTER) < $< diff --git a/test/block-cluster_scope.md.md b/test/block-cluster_scope.md.md new file mode 100644 index 0000000..047c57a --- /dev/null +++ b/test/block-cluster_scope.md.md @@ -0,0 +1,17 @@ +# People + +## Manu Sporny + +My name is Manu Sporny. + +## Thomas Francart + +My name is Thomas Francart. + +I once read this: + +> My name is Manu Sporny. +> +> You can give me a ring. + +Should I call him? diff --git a/test/block-siblings_scope.md.md b/test/block-siblings_scope.md.md new file mode 100644 index 0000000..e0e11c8 --- /dev/null +++ b/test/block-siblings_scope.md.md @@ -0,0 +1,11 @@ +# People + +## Manu Sporny + +My name is Manu Sporny. + +## Thomas Francart + +My name is Thomas Francart. + +# Animals diff --git a/test/block-siblings_scope_list.md.md b/test/block-siblings_scope_list.md.md new file mode 100644 index 0000000..728e5d7 --- /dev/null +++ b/test/block-siblings_scope_list.md.md @@ -0,0 +1,3 @@ +- Thomas +- Vincent +- Nicolas diff --git a/test/block-tree_scope.md.md b/test/block-tree_scope.md.md new file mode 100644 index 0000000..d9068e9 --- /dev/null +++ b/test/block-tree_scope.md.md @@ -0,0 +1,10 @@ +# People + +## Manu Sporny + +My name is Manu Sporny, +and you can give me a ring. + +## Thomas Francart + +My name is Thomas Francart. diff --git a/test/block_scope.md.md b/test/block_scope.md.md new file mode 100644 index 0000000..c0150ad --- /dev/null +++ b/test/block_scope.md.md @@ -0,0 +1,3 @@ +You can give me a ring. + +You can give me a ring {=<#manu>}. diff --git a/test/block_scope_list.md.md b/test/block_scope_list.md.md new file mode 100644 index 0000000..6ed3cb5 --- /dev/null +++ b/test/block_scope_list.md.md @@ -0,0 +1,3 @@ +- Thomas Francart +- 39 +- Semantic Web Consultant diff --git a/test/ex_paragraph.md.md b/test/ex_paragraph.md.md new file mode 100644 index 0000000..3844c97 --- /dev/null +++ b/test/ex_paragraph.md.md @@ -0,0 +1,6 @@ +My name is +Manu Sporny +and you can give me a ring via +1-800-555-0199. +![](http://manu.sporny.org/images/manu.png) +My favorite animal is the Liger. diff --git a/test/ex_title_and_list.md.md b/test/ex_title_and_list.md.md new file mode 100644 index 0000000..f798915 --- /dev/null +++ b/test/ex_title_and_list.md.md @@ -0,0 +1,13 @@ +## Specification meeting + +- Date: 11/10 +- Place: Our office, Street name, Paris +- Meeting participants: + - Alice + - Bob + - [Tim](https://www.wikidata.org/entity/Q80) +- Description: Some information not annotated + +## Launch party + +(TODO) diff --git a/test/link_definition_scope.md.md b/test/link_definition_scope.md.md new file mode 100644 index 0000000..0b24f0a --- /dev/null +++ b/test/link_definition_scope.md.md @@ -0,0 +1,4 @@ +My name is +Manu Sporny +and you can give me a ring via +1-800-555-0199. diff --git a/test/span_scope.md.md b/test/span_scope.md.md new file mode 100644 index 0000000..7ecdf46 --- /dev/null +++ b/test/span_scope.md.md @@ -0,0 +1,4 @@ +My name is Manu Sporny. +My name is **Manu [Sporny]**. +My name is [Manu Sporny] {schema:name}. +My name is Manu Sporny{schema:name}. -- cgit v1.2.3