Anchor tag for summary

This commit is contained in:
Tim DuBois 2018-03-25 13:05:42 +02:00
parent f0fe4541ba
commit 0a34184ac5
No known key found for this signature in database
GPG key ID: 4D3183C1C5D8A54F

View file

@ -170,7 +170,7 @@ impl Page {
permalinks,
anchor_insert
);
let res = markdown_to_html(&self.raw_content, &context)?;
let res = markdown_to_html(&self.raw_content.replacen("<!-- more -->", "<a name=\"more\"></a>", 1), &context)?;
self.content = res.0;
self.toc = res.1;
if self.raw_content.contains("<!-- more -->") {