Compare commits

...

1 commit

Author SHA1 Message Date
c3e02a0d1a feat: moving from old name conventions. 2024-12-25 00:43:55 +05:00
6 changed files with 4 additions and 0 deletions

View file

@ -28,7 +28,11 @@ pub fn render_markdown_for_fts(src: &str) -> String {
for event in p { for event in p {
match event { 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, " ")), Text(text) => buf.push_str(&text.replace(is_html_special, " ")),
// Footnote links maybe?
End(Tag::Link(uri, _title)) => { End(Tag::Link(uri, _title)) => {
buf.push_str(" ("); buf.push_str(" (");
buf.push_str(&uri.replace(is_html_special, " ")); buf.push_str(&uri.replace(is_html_special, " "));