mirror of
https://github.com/github/semantic.git
synced 2024-12-29 09:55:52 +03:00
classifyMarkup takes the first category if any.
This commit is contained in:
parent
e77b3a8bd4
commit
e6e3d9d450
@ -23,7 +23,7 @@ import qualified Source ((++))
|
||||
type ClassName = String
|
||||
|
||||
classifyMarkup :: Foldable f => f String -> Markup -> Markup
|
||||
classifyMarkup categories element = maybe element ((element !) . A.class_ . stringValue . ("category-" ++)) $ maybeLast categories
|
||||
classifyMarkup categories element = maybe element ((element !) . A.class_ . stringValue . ("category-" ++)) $ maybeFirst categories
|
||||
|
||||
split :: Diff a Info -> String -> String -> IO ByteString
|
||||
split diff before after = return . renderHtml
|
||||
|
Loading…
Reference in New Issue
Block a user