mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-03 01:55:27 +00:00
remove strip_tags as conflicting with code blocks; handle tags instead (todo)
Some checks are pending
Linux / build (push) Waiting to run
Some checks are pending
Linux / build (push) Waiting to run
This commit is contained in:
parent
8fad5ec66c
commit
51c78b878c
3 changed files with 1 additions and 10 deletions
|
|
@ -15,7 +15,6 @@ use gutter::Gutter;
|
|||
use regex::Regex;
|
||||
use sourceview::prelude::{ActionExt, ActionMapExt, DisplayExt, ToVariant};
|
||||
use std::{cell::Cell, collections::HashMap, rc::Rc};
|
||||
use strip_tags::*;
|
||||
use tags::Tags;
|
||||
|
||||
pub struct Markdown {
|
||||
|
|
@ -56,7 +55,7 @@ impl Markdown {
|
|||
buffer.set_text(
|
||||
Regex::new(r"\n{3,}")
|
||||
.unwrap()
|
||||
.replace_all(&strip_tags(markdown), "\n\n")
|
||||
.replace_all(markdown, "\n\n")
|
||||
.trim(),
|
||||
); // @TODO extract `<img>` tags?
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue