aboutsummaryrefslogtreecommitdiff
path: root/testdata/watcher_test.txt
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-05-14 17:06:21 +0700
committerShulhan <ms@kilabit.info>2023-05-14 17:13:56 +0700
commitfad7cd21134a4cac75f876bce866830c35042f8e (patch)
treedd55dd5c6edf2b5bfb8f0bf7d6e1cb12b15712eb /testdata/watcher_test.txt
parentc109a3dd026cf6fbdc147d5a2c17535569d8964d (diff)
downloadciigo-fad7cd21134a4cac75f876bce866830c35042f8e.tar.xz
all: bring back support for Markdown
I use two remote repositories: GitHub and SourceHut. GitHub support rendering README using asciidoc while SourceHut not. This cause the repository that use README.adoc rendered as text in SourceHut which make the repository page less readable. Also, the pkg.go.dev now render README but only support Markdown. Since we cannot control the SourceHut and go.dev, the only option is to support converting Markdown in ciigo so I can write README using Markdown and the rest of documentation using Asciidoc.
Diffstat (limited to 'testdata/watcher_test.txt')
-rw-r--r--testdata/watcher_test.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/testdata/watcher_test.txt b/testdata/watcher_test.txt
new file mode 100644
index 0000000..a1937b9
--- /dev/null
+++ b/testdata/watcher_test.txt
@@ -0,0 +1,29 @@
+>>> create.md
+---
+Title: a title
+---
+# watch create
+
+<<< create.md.html
+<!DOCTYPE>
+<html>
+<head><title>a title</title></head>
+<body><h1>watch create</h1>
+</body>
+</html>
+
+>>> update.md
+---
+Title: A new title
+stylesheet: /path/to/style.css
+keywords: ciigo,markdown
+---
+# watch updated
+
+<<< update.md.html
+<!DOCTYPE>
+<html>
+<head><title>A new title</title></head>
+<body><h1>watch updated</h1>
+</body>
+</html>