feat: moving from old name conventions.
This commit is contained in:
parent
b034dcf61a
commit
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 {
|
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, " "));
|
||||||
|
|
Loading…
Reference in a new issue