diff options
Diffstat (limited to 'src/tui/markdown.rs')
-rw-r--r-- | src/tui/markdown.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tui/markdown.rs b/src/tui/markdown.rs index ff1a0cb..6c44684 100644 --- a/src/tui/markdown.rs +++ b/src/tui/markdown.rs @@ -61,12 +61,11 @@ where fn preprocess(input: String) -> String { // TODO handle other stackexchange oddities here ENTITIES // TODO then benchmark - let input = input + input .as_str() .trim() .replace("<kbd>", "**[") - .replace("</kbd>", "]**"); - input + .replace("</kbd>", "]**") } /// Parse the given markdown text into a list of spans. |