Compare commits
1 commit
dependabot
...
master
Author | SHA1 | Date | |
---|---|---|---|
c3e02a0d1a |
6 changed files with 4 additions and 0 deletions
|
@ -28,7 +28,11 @@ pub fn render_markdown_for_fts(src: &str) -> String {
|
|||
|
||||
for event in p {
|
||||
match event {
|
||||
// As far as I understand this is a basic
|
||||
// sanitizing to prevent HTML from
|
||||
// appearing in page.
|
||||
Text(text) => buf.push_str(&text.replace(is_html_special, " ")),
|
||||
// Footnote links maybe?
|
||||
End(Tag::Link(uri, _title)) => {
|
||||
buf.push_str(" (");
|
||||
buf.push_str(&uri.replace(is_html_special, " "));
|
||||
|
|
Loading…
Reference in a new issue