aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-05-27 07:15:19 +0200
committerJonas Smedegaard <dr@jones.dk>2025-05-27 07:15:19 +0200
commitd94416e0be8003e3636cd097c4fa28e5bec5fee0 (patch)
treed9b8ba967edea48c3de939f34c5b2ed547fa1530
parent14ec2b5fc5719eb249dda27daa6d1ee07c8ea132 (diff)
check tests renedered as CommonMark (not HTML)
-rw-r--r--Makefile13
-rw-r--r--test/block-cluster_scope.md.md17
-rw-r--r--test/block-siblings_scope.md.md11
-rw-r--r--test/block-siblings_scope_list.md.md3
-rw-r--r--test/block-tree_scope.md.md10
-rw-r--r--test/block_scope.md.md3
-rw-r--r--test/block_scope_list.md.md3
-rw-r--r--test/ex_paragraph.md.md6
-rw-r--r--test/ex_title_and_list.md.md13
-rw-r--r--test/link_definition_scope.md.md4
-rw-r--r--test/span_scope.md.md4
11 files changed, 82 insertions, 5 deletions
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}.