Handle Wikipedia code blocks in /fetch
command (#12780)
This PR extends the `/fetch` command with support for Wikipedia code blocks. Release Notes: - N/A
This commit is contained in:
parent
9174858225
commit
834089feb1
3 changed files with 107 additions and 4 deletions
|
@ -162,7 +162,7 @@ impl MarkdownWriter {
|
|||
}
|
||||
|
||||
let text = text
|
||||
.trim_matches(|char| char == '\n' || char == '\r')
|
||||
.trim_matches(|char| char == '\n' || char == '\r' || char == '\t')
|
||||
.replace('\n', " ");
|
||||
|
||||
self.push_str(&text);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue