mirror of
https://github.com/github/semantic.git
synced 2025-01-04 05:27:08 +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
|
type ClassName = String
|
||||||
|
|
||||||
classifyMarkup :: Foldable f => f String -> Markup -> Markup
|
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 a Info -> String -> String -> IO ByteString
|
||||||
split diff before after = return . renderHtml
|
split diff before after = return . renderHtml
|
||||||
|
Loading…
Reference in New Issue
Block a user