Shared: Generalized type of removeFormatting.
This commit is contained in:
parent
5df812f7eb
commit
5dba2e2192
1 changed files with 1 additions and 1 deletions
|
@ -495,7 +495,7 @@ normalizeInlines (x : xs) = x : normalizeInlines xs
|
|||
normalizeInlines [] = []
|
||||
|
||||
-- | Remove inline formatting from a list of inlines.
|
||||
removeFormatting :: [Inline] -> [Inline]
|
||||
removeFormatting :: Walkable Inline a => a -> [Inline]
|
||||
removeFormatting = query go . walk deNote
|
||||
where go :: Inline -> [Inline]
|
||||
go (Str xs) = [Str xs]
|
||||
|
|
Loading…
Add table
Reference in a new issue