Browse Source

Anchor tag for summary

index-subcmd
Tim DuBois 6 years ago
parent
commit
0a34184ac5
No known key found for this signature in database GPG Key ID: 4D3183C1C5D8A54F
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      components/content/src/page.rs

+ 1
- 1
components/content/src/page.rs 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 -->") {


Loading…
Cancel
Save