0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/middleware/markdown
Tw fbc18c5b85 markdown: fix json format parse issue
We can't use json meta parser's remaining buffered data as the markdown body
because it may not contain the entire original content.
Now we adopt the way like toml and yaml parser's way to extract the meta content
at first.

Also when spilting the meta data and content body, additional io.Copy is
unnecessary.

Fix issue #355

Signed-off-by: Tw <tw19881113@gmail.com>
2015-11-25 08:32:14 +08:00
..
testdata markdown: Enable tables, fenced code, and strikethrough (closes #294) 2015-10-29 09:59:32 -06:00
generator.go markdown: Make base path optional, always generate links 2015-11-07 20:24:17 -07:00
markdown.go Don't truncate process log; more consistent output 2015-11-05 17:01:08 -07:00
markdown_test.go markdown: Enable tables, fenced code, and strikethrough (closes #294) 2015-10-29 09:59:32 -06:00
metadata.go markdown: fix json format parse issue 2015-11-25 08:32:14 +08:00
metadata_test.go Metadata variables flattened. 2015-07-28 05:21:09 +01:00
page.go Unexport internal types; improved markdown summaries 2015-11-09 07:45:37 -07:00
process.go Don't truncate process log; more consistent output 2015-11-05 17:01:08 -07:00
renderer.go pass golint 2015-11-05 00:40:35 +00:00
watcher.go Don't truncate process log; more consistent output 2015-11-05 17:01:08 -07:00
watcher_test.go Use less strict condition to avoid problems with concurrency 2015-09-11 10:25:13 -07:00