remove # from lántas passages

This commit is contained in:
Rhiannon Morris 2024-11-26 06:08:10 +01:00
parent 54a8aa1119
commit 26a4415049

View file

@ -43,7 +43,8 @@ glossTable = \case
make l b n s g t = do
let = length $ splitInlines s
let colspecs = replicate (AlignDefault, ColWidthDefault)
let l' = cell1 $ underlines l; b' = cell1 <$> b; n' = cell1 <$> n
let l' = cell1 $ underlines $ noHash l
b' = cell1 <$> b; n' = cell1 <$> n
let ss = cells s; gs = cells g; t' = cell1 t
img <- case ?lang of
Just Lántas ->
@ -85,3 +86,8 @@ underlines = concatMap underlineStr . takeWhile (/= Str "|") where
underlineStr = \case
Str txt -> Spans.underlines txt
i -> [i]
noHash :: [Inline] -> [Inline]
noHash = walk \case
Str str -> Str $ Text.filter (/= '#') str
i -> i