convert to markdown

This commit is contained in:
Miguel Jacq 2025-11-08 17:29:36 +11:00
parent 31604a0cd2
commit 6a9d2c4bcc
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
54 changed files with 1616 additions and 4012 deletions

View file

@ -0,0 +1,11 @@
from bouquin.search import Search
def test_make_html_snippet_and_strip_markdown(qtbot, fresh_db):
s = Search(fresh_db)
long = (
"This is **bold** text with alpha in the middle and some more trailing content."
)
frag, left, right = s._make_html_snippet(long, "alpha", radius=10, maxlen=40)
assert "alpha" in frag
s._strip_markdown("**bold** _italic_ ~~strike~~ 1. item - [x] check")