mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-27 16:54:53 +09:00
Encode pretty JSON using encodePretty, highlighting doesn't do formatting!
This commit is contained in:
parent
685b7ec2bc
commit
183e9a7754
1 changed files with 2 additions and 2 deletions
|
@ -262,7 +262,7 @@ renderPandocMarkdown input =
|
|||
. writeHtml5 writerOptions
|
||||
|
||||
renderPrettyJSON :: ToJSON a => a -> WidgetFor site ()
|
||||
renderPrettyJSON = renderPrettyJSON' . encode
|
||||
renderPrettyJSON = renderPrettyJSON' . encodePretty
|
||||
|
||||
renderPrettyJSON' :: BL.ByteString -> WidgetFor site ()
|
||||
renderPrettyJSON' prettyBL =
|
||||
|
@ -289,4 +289,4 @@ renderPrettyJSONSkylighting' prettyBL =
|
|||
options = defaultFormatOpts { numberLines = True }
|
||||
|
||||
renderPrettyJSONSkylighting :: ToJSON a => a -> WidgetFor site ()
|
||||
renderPrettyJSONSkylighting = renderPrettyJSONSkylighting' . encode
|
||||
renderPrettyJSONSkylighting = renderPrettyJSONSkylighting' . encodePretty
|
||||
|
|
Loading…
Reference in a new issue