diff --git a/test/code-name.html b/test/code-name.html new file mode 100644 index 00000000..e9b949c3 --- /dev/null +++ b/test/code-name.html @@ -0,0 +1 @@ +
FOO
BAR
java
BAZ
diff --git a/test/code-name.json b/test/code-name.json new file mode 100644 index 00000000..bbd9b384 --- /dev/null +++ b/test/code-name.json @@ -0,0 +1,59 @@ +{ + "input": "[[code name=\"a\"]]\nFOO\n[[/code]]\n\n[[code]]\nBAR\n[[/code]]\n\n[[code name=\"b\" type=\"java\"]]\nBAZ\n[[/code]]", + "tree": { + "elements": [ + { + "element": "code", + "data": { + "contents": "FOO", + "language": null + } + }, + { + "element": "code", + "data": { + "contents": "BAR", + "language": null + } + }, + { + "element": "code", + "data": { + "contents": "BAZ", + "language": "java" + } + }, + { + "element": "footnote-block", + "data": { + "title": null, + "hide": false + } + } + ], + "html-blocks": [ + ], + "code-blocks": [ + { + "contents": "FOO", + "name": "a" + }, + { + "contents": "BAR", + "name": null + }, + { + "contents": "BAZ", + "name": "b" + } + ], + "table-of-contents": [ + ], + "footnotes": [ + ], + "bibliographies": [ + ] + }, + "errors": [ + ] +} diff --git a/test/code-name.txt b/test/code-name.txt new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/test/code-name.txt @@ -0,0 +1 @@ +