The <!--more--> (summary divider) now works even if it is on the same line as content

Signed-off-by: Noah Campbell <noahcampbell@gmail.com>
This commit is contained in:
Mark Sanborn
2013-08-31 21:07:22 -07:00
committed by Noah Campbell
parent 4349216deb
commit 6c8e7edbb4
4 changed files with 37 additions and 12 deletions

View File

@@ -481,7 +481,7 @@ func (page *Page) convertMarkdown(lines io.Reader) {
b := new(bytes.Buffer)
b.ReadFrom(lines)
content := b.Bytes()
page.Content = template.HTML(string(blackfriday.MarkdownCommon(content)))
page.Content = template.HTML(string(blackfriday.MarkdownCommon(RemoveSummaryDivider(content))))
summary, plain := getSummaryString(content)
if plain {
page.Summary = template.HTML(string(summary))