Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Fasching <niklas.fasching@gmail.com>2019-06-04 13:21:25 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-06-08 11:13:00 +0300
commitb6867bf8068fcaaddf1cb7478f4d52a9c1be1411 (patch)
tree2229d8788d26498cfd569904f442a0510e490b2c /hugolib/page_test.go
parent9df57154ee3e3185d024bfe376101b404d8b7cc4 (diff)
Improve Org mode support: Replace goorgeous with go-org
Sadly, goorgeous has not been updated in over a year and still has a lot of open issues (e.g. no support for nested lists). go-org fixes most of those issues and supports a larger subset of Org mode syntax.
Diffstat (limited to 'hugolib/page_test.go')
-rw-r--r--hugolib/page_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/hugolib/page_test.go b/hugolib/page_test.go
index 91ccb0d3e..79a8a267f 100644
--- a/hugolib/page_test.go
+++ b/hugolib/page_test.go
@@ -1216,12 +1216,12 @@ CONTENT:{{ .Content }}
)
b.AssertFileContent("public/page-org-shortcode/index.html",
- "SUMMARY:<p>This is a a shortcode.</p>:END",
- "CONTENT:<p>This is a a shortcode.</p>\n\n<p>Content.\t</p>\n",
+ "SUMMARY:<p>\nThis is a a shortcode.\n</p>:END",
+ "CONTENT:<p>\nThis is a a shortcode.\n</p>\n<p>\nContent.\t\n</p>\n",
)
b.AssertFileContent("public/page-org-variant1/index.html",
- "SUMMARY:<p>Summary.</p>:END",
- "CONTENT:<p>Summary.</p>\n\n<p>Content.\t</p>\n",
+ "SUMMARY:<p>\nSummary.\n</p>:END",
+ "CONTENT:<p>\nSummary.\n</p>\n<p>\nContent.\t\n</p>\n",
)
b.AssertFileContent("public/page-md-only-shortcode/index.html",