From 72e894b4c6b4f70aaa0609daa9cae94225c1d9be Mon Sep 17 00:00:00 2001 From: Qria Date: Thu, 16 Aug 2018 19:38:15 +0900 Subject: [PATCH] Add syntax highlighting. Closes #310 --- CHANGES.md | 2 ++ src/Nirum/Targets/Docs.hs | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 1ac657b..3e3cede 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -28,6 +28,8 @@ To be released. [[#297], [#304] by Jeong Ukjae] - Added `opengraphs` option for [OpenGraph] objects on docs. [[#283], [#305] by GyuYong Jung] + - Added syntax highlighting. + [[#310], [#311] by MinJune Kim] ### Python target diff --git a/src/Nirum/Targets/Docs.hs b/src/Nirum/Targets/Docs.hs index c8c743d..0756b7a 100644 --- a/src/Nirum/Targets/Docs.hs +++ b/src/Nirum/Targets/Docs.hs @@ -113,6 +113,9 @@ $doctype 5 $forall OpenGraph { ogTag, ogContent } <- docsOpenGraph $ target pkg + + + #{preEscapedToMarkup $ docsHeader $ target pkg}