Anchor tag for summary
This commit is contained in:
parent
f0fe4541ba
commit
0a34184ac5
|
@ -170,7 +170,7 @@ impl Page {
|
||||||
permalinks,
|
permalinks,
|
||||||
anchor_insert
|
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.content = res.0;
|
||||||
self.toc = res.1;
|
self.toc = res.1;
|
||||||
if self.raw_content.contains("<!-- more -->") {
|
if self.raw_content.contains("<!-- more -->") {
|
||||||
|
|
Loading…
Reference in a new issue