remove strip_tags as conflicting with code blocks; handle tags instead (todo)
Some checks are pending
Linux / build (push) Waiting to run

This commit is contained in:
yggverse 2026-04-02 20:43:50 +03:00
parent 8fad5ec66c
commit 51c78b878c
3 changed files with 1 additions and 10 deletions

View file

@ -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?