Browse Source

add id to continue reading p tag (#577)

* add id to continue reading p tag
index-subcmd
toidiu Vincent Prouillet 5 years ago
parent
commit
09f691fa47
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      components/rendering/src/markdown.rs
  2. +1
    -1
      components/rendering/tests/markdown.rs

+ 1
- 1
components/rendering/src/markdown.rs View File

@@ -16,7 +16,7 @@ use utils::site::resolve_internal_link;
use context::RenderContext;
use table_of_contents::{make_table_of_contents, Header, TempHeader};

const CONTINUE_READING: &str = "<p><a name=\"continue-reading\"></a></p>\n";
const CONTINUE_READING: &str = "<p id=\"zola-continue-reading\"><a name=\"continue-reading\"></a></p>\n";

#[derive(Debug)]
pub struct Rendered {


+ 1
- 1
components/rendering/tests/markdown.rs View File

@@ -708,7 +708,7 @@ fn can_handle_summaries() {
.unwrap();
assert_eq!(
res.body,
"<p>Hello <a href=\"https://vincent.is/about/\">world</a></p>\n<p><a name=\"continue-reading\"></a></p>\n<p>Bla bla</p>\n"
"<p>Hello <a href=\"https://vincent.is/about/\">world</a></p>\n<p id=\"zola-continue-reading\"><a name=\"continue-reading\"></a></p>\n<p>Bla bla</p>\n"
);
assert_eq!(
res.summary_len,


Loading…
Cancel
Save