mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
Split spans into lines.
This commit is contained in:
parent
7d3542075d
commit
87b86ba817
@ -62,6 +62,7 @@ splitTerm source = cata toElement where
|
||||
|
||||
splitHTMLIntoLines :: HTML -> [HTML]
|
||||
splitHTMLIntoLines (Text string) = Text <$> lines string
|
||||
splitHTMLIntoLines (Span className string) = Span className <$> lines string
|
||||
|
||||
classify :: Set.Set Category -> Maybe ClassName
|
||||
classify = foldr (const . Just) Nothing
|
||||
|
Loading…
Reference in New Issue
Block a user