Remove quotes around href in code line numbers
This commit is contained in:
parent
9222b05d9f
commit
b594b9f4f5
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ fn write_scraped_line_number(out: &mut impl Write, line: u32, extra: &'static st
|
|||
fn write_line_number(out: &mut impl Write, line: u32, extra: &'static str) {
|
||||
// https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag#data-nosnippet-attr
|
||||
// Do not show "1 2 3 4 5 ..." in web search results.
|
||||
write!(out, "{extra}<a href=\"#{line}\" id={line} data-nosnippet>{line}</a>",).unwrap();
|
||||
write!(out, "{extra}<a href=#{line} id={line} data-nosnippet>{line}</a>",).unwrap();
|
||||
}
|
||||
|
||||
fn empty_line_number(out: &mut impl Write, _: u32, extra: &'static str) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue