mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2025-01-01 16:36:19 +03:00
Turn off syntax highlighthing for now to test out performance.
This commit is contained in:
parent
a0622db69d
commit
66e43cb71b
@ -300,9 +300,14 @@ code snippet =
|
||||
|
||||
codeBlock : { body : String, language : Maybe String } -> Element msg
|
||||
codeBlock details =
|
||||
SyntaxHighlight.elm details.body
|
||||
|> Result.map (SyntaxHighlight.toBlockHtml (Just 1))
|
||||
|> Result.withDefault
|
||||
(Html.pre [] [ Html.code [] [ Html.text details.body ] ])
|
||||
|> Element.html
|
||||
|> Element.el [ Element.width Element.fill ]
|
||||
Element.paragraph [] [ Element.text details.body ]
|
||||
|
||||
|
||||
|
||||
-- TODO turn this back on - it's off for now to get more accurate performance benchmarks
|
||||
--SyntaxHighlight.elm details.body
|
||||
-- |> Result.map (SyntaxHighlight.toBlockHtml (Just 1))
|
||||
-- |> Result.withDefault
|
||||
-- (Html.pre [] [ Html.code [] [ Html.text details.body ] ])
|
||||
-- |> Element.html
|
||||
-- |> Element.el [ Element.width Element.fill ]
|
||||
|
Loading…
Reference in New Issue
Block a user