├── .gitattributes ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── pp ├── README.md ├── TODO.md ├── macros │ ├── .gitignore │ ├── CHANGELOG │ ├── GFM-Alerts.css │ ├── GFM-Alerts.pp │ ├── GFM-Alerts.scss │ ├── Highlight.pp │ ├── INIT-ENV.bat │ ├── INIT-ENV.sh │ ├── InlineFormatting.pp │ ├── README.md │ ├── SASS-BUILD.bat │ ├── kbd_GitHub.css │ └── macros.pp └── test │ ├── GFM-Alerts.html │ ├── GFM-Alerts.md │ ├── Highlight.html │ ├── Highlight.md │ ├── InlineFormatting.html │ ├── InlineFormatting.md │ ├── LICENSE │ ├── RUN-TESTS.bat │ ├── RUN-TESTS.pp │ ├── RUN-TESTS.sh │ ├── TODO │ ├── code-example.pb │ └── github.css ├── skylighting ├── README.md ├── Tokens-CSS.md ├── Tokens-Guide.md ├── css │ ├── README.md │ ├── built-in-styles │ │ ├── GPL-2.0 │ │ ├── LICENSE │ │ ├── README.md │ │ ├── breezedark.css │ │ ├── espresso.css │ │ ├── haddock.css │ │ ├── kate.css │ │ ├── monochrome.css │ │ ├── pandoc_v1 │ │ │ ├── GPL-2.0 │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── breezedark.css │ │ │ ├── espresso.css │ │ │ ├── haddock.css │ │ │ ├── kate.css │ │ │ ├── monochrome.css │ │ │ ├── pygments.css │ │ │ ├── tango.css │ │ │ └── zenburn.css │ │ ├── pygments.css │ │ ├── tango.css │ │ └── zenburn.css │ └── sass-templates │ │ ├── README.md │ │ ├── UNLICENSE │ │ ├── barebones.scss │ │ ├── build-n-watch.sh │ │ └── pandoc_v1 │ │ ├── README.md │ │ ├── bare-bones.scss │ │ └── build-n-watch.sh └── themes │ ├── README.md │ ├── UNLICENSE │ ├── boilerplate.theme │ ├── builtin-breezedark.theme │ ├── builtin-espresso.theme │ ├── builtin-haddock.theme │ ├── builtin-kate.theme │ ├── builtin-monochrome.theme │ ├── builtin-pygments.theme │ ├── builtin-tango.theme │ ├── builtin-zenburn.theme │ └── update.sh └── templates └── html5 └── github ├── GitHub-Template-Preview.html ├── GitHub.html5 ├── INSTALL.bat ├── LICENSE ├── README.md ├── TODO.md └── src ├── BUILD-ALL.bat ├── GitHub.css ├── GitHub.css.map ├── GitHub.min.css ├── GitHub.scss ├── GitHub_source.html5 ├── LICENSE ├── PREVIEW-BUILD.bat ├── PREVIEW.md ├── README.md ├── SASS-BUILD.bat ├── SASS-WATCH.bat ├── TEMPLATE-BUILD.bat ├── WATCH-ALL.bat ├── _alerts.scss ├── _github-markdown.scss ├── _pandoc.scss └── css-injector.js /.gitattributes: -------------------------------------------------------------------------------- 1 | # ============================================================================== 2 | # Line Endings Conversion 3 | # ============================================================================== 4 | # Set Git's default behaviour to text-files autodetection, in case users don't 5 | # have `core.autocrlf` set: 6 | * text=auto 7 | 8 | # ------------------------------------------------------------------------------ 9 | # Text Files (EOL Normalization Settings) 10 | # ------------------------------------------------------------------------------ 11 | 12 | ## ================= 13 | ## SOURCE CODE FILES 14 | ## ================= 15 | 16 | ## PP Macros 17 | ## --------- 18 | *.pp text 19 | 20 | ## Pandoc Templates 21 | ## ---------------- 22 | *.html5 text 23 | 24 | ## Skylighting JSON Themes 25 | ## ----------------------- 26 | *.theme text eol=lf 27 | 28 | ## Shell scripts 29 | ## ------------- 30 | *.bat text eol=crlf 31 | *.com text eol=crlf 32 | *.sh text eol=lf 33 | 34 | ## Scripts 35 | ## ------- 36 | *.lua text 37 | *.php text 38 | *.pl text 39 | *.py text 40 | *.rb text 41 | *.tcl text 42 | 43 | ## ================== 44 | ## MISC. DATA FORMATS 45 | ## ================== 46 | *.json text 47 | *.xml text 48 | *.xhtml text 49 | 50 | # ================= 51 | ## WEB-RELATED FILES 52 | ## ================= 53 | *.htm text 54 | *.html text 55 | *.css text eol=lf 56 | *.js text 57 | *.sass text 58 | *.scss text 59 | 60 | ## =================== 61 | ## DOCUMENTATION FILES 62 | ## =================== 63 | *.txt text 64 | *COPYRIGHT* text 65 | *README* text 66 | AUTHORS text 67 | CHANGELOG text 68 | CHANGES text 69 | CONTRIBUTING text 70 | COPYING text 71 | copyright text 72 | INSTALL text 73 | license text 74 | *LICENSE* text 75 | NEWS text 76 | readme text 77 | TODO text 78 | 79 | ## =================== 80 | ## Configuration files 81 | ## =================== 82 | *.cnf text 83 | *.conf text 84 | *.config text 85 | *.ini text 86 | *.prefs text 87 | .editorconfig text 88 | ## ------------- 89 | ## Git settings: 90 | ## ------------- 91 | .gitattributes text 92 | .gitconfig text 93 | .gitignore text 94 | .gitmodules text eol=crlf 95 | 96 | # ------------------------------------------------------------------------------ 97 | # Binary Files 98 | # ------------------------------------------------------------------------------ 99 | # Explicitly declare all files that are binary and shouldn't be modified by Git: 100 | 101 | ## ======== 102 | ## GRAPHICS 103 | ## ======== 104 | *.bmp binary 105 | *.gif binary 106 | *.icns binary 107 | *.ico binary 108 | *.jpeg binary 109 | *.jpg binary 110 | *.png binary 111 | 112 | ## ======== 113 | ## ARCHIVES 114 | ## ======== 115 | *.7z binary 116 | *.gz binary 117 | *.jar binary 118 | *.rar binary 119 | *.tar binary 120 | *.zip binary 121 | 122 | # ============================================================================== 123 | # GitHub Linguist 124 | # ============================================================================== 125 | # -- https://github.com/github/linguist 126 | # Manually define/override some extension so that GitHub's Linguist library can 127 | # 1) correctly gather statistics on source files, and 128 | # 2) use proper syntax highlighting on GitHub's WebUI. 129 | 130 | ## ================ 131 | ## PANDOC TEMPLATES 132 | ## ================ 133 | *.html5 linguist-language=HTML 134 | 135 | ## =========================== 136 | ## KDE theme files (JSON) 137 | ## =========================== 138 | # skylighting/themes/ 139 | *.theme linguist-language=JSON 140 | 141 | # NOTE: There is a potential conflict with Highlight themes which also have 142 | # ".theme" extension (but are Lua files)! When both will be present in 143 | # this repo, I'll have to resort to folder-based patterns... 144 | 145 | # Currently unused: 146 | ## =========================== 147 | ## HIGHLIGHT LANGDEFS & THEMES 148 | ## =========================== 149 | # *.lang linguist-language=Lua 150 | # *.theme linguist-language=Lua 151 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # ============================================================================== 2 | # PANDOC-GOODIES 3 | # ============================================================================== 4 | # .gitignore definitions file for the pandoc-goodies project: 5 | # -- https://github.com/tajmone/pandoc-goodies 6 | # ------------------------------------------------------------------------------ 7 | 8 | ## ========== 9 | ## Sass Cache 10 | ## ========== 11 | ## In case someone still uses Ruby Sass: 12 | .sass-cache/ 13 | 14 | ## =============== 15 | ## Misc Work Files 16 | ## =============== 17 | 18 | # Temporary/backup or removed files and folders: 19 | ___* 20 | ___*.* 21 | 22 | # Links and URLs 23 | *.lnk 24 | *.url 25 | 26 | # Binary executables 27 | *.exe 28 | *.app 29 | *.out 30 | 31 | ## ========================== 32 | ## Special Folders Exceptions 33 | ## ========================== 34 | 35 | # Exclude Sass generated CSS and CSS Maps: 36 | /skylighting/css/sass-templates/**/*.css 37 | /skylighting/css/sass-templates/**/*.css.map 38 | /pp/macros/*.css.map 39 | 40 | # ============================================================================== 41 | # Node.js 42 | # ============================================================================== 43 | # Some build/batch/bash files require Node apps; since some users might rather 44 | # install them locally to the project instead of globally, these settings might 45 | # be useful to cover for such cases. 46 | # ------------------------------------------------------------------------------ 47 | # Created by https://www.gitignore.io/api/node 48 | 49 | ### Node ### 50 | # Logs 51 | logs 52 | *.log 53 | npm-debug.log* 54 | yarn-debug.log* 55 | yarn-error.log* 56 | 57 | # Runtime data 58 | pids 59 | *.pid 60 | *.seed 61 | *.pid.lock 62 | 63 | # Directory for instrumented libs generated by jscoverage/JSCover 64 | lib-cov 65 | 66 | # Coverage directory used by tools like istanbul 67 | coverage 68 | 69 | # nyc test coverage 70 | .nyc_output 71 | 72 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 73 | .grunt 74 | 75 | # Bower dependency directory (https://bower.io/) 76 | bower_components 77 | 78 | # node-waf configuration 79 | .lock-wscript 80 | 81 | # Compiled binary addons (http://nodejs.org/api/addons.html) 82 | build/Release 83 | 84 | # Dependency directories 85 | node_modules/ 86 | jspm_packages/ 87 | 88 | # Typescript v1 declaration files 89 | typings/ 90 | 91 | # Optional npm cache directory 92 | .npm 93 | 94 | # Optional eslint cache 95 | .eslintcache 96 | 97 | # Optional REPL history 98 | .node_repl_history 99 | 100 | # Output of 'npm pack' 101 | *.tgz 102 | 103 | # Yarn Integrity file 104 | .yarn-integrity 105 | 106 | # dotenv environment variables file 107 | .env 108 | 109 | # <<< End of https://www.gitignore.io/api/node 110 | 111 | ############################ 112 | ## COMMON IGNORE PATTERNS ## 113 | ############################ 114 | # Based on ".gitignore" created by: 115 | # https://www.gitignore.io/api/windows,linux,macos 116 | 117 | ## Linux 118 | ######## 119 | 120 | *~ 121 | 122 | # temporary files which can be created if a process still has a handle open of a deleted 123 | file 124 | .fuse_hidden* 125 | 126 | # KDE directory preferences 127 | .directory 128 | 129 | # Linux trash folder which might appear on any partition or disk 130 | .Trash-* 131 | 132 | # .nfs files are created when an open file is removed but is still being accessed 133 | .nfs* 134 | 135 | ## macOS 136 | ######## 137 | *.DS_Store 138 | .AppleDouble 139 | .LSOverride 140 | 141 | # Icon must end with two \r 142 | Icon 143 | 144 | # Thumbnails 145 | ._* 146 | 147 | # Files that might appear in the root of a volume 148 | .DocumentRevisions-V100 149 | .fseventsd 150 | .Spotlight-V100 151 | .TemporaryItems 152 | .Trashes 153 | .VolumeIcon.icns 154 | .com.apple.timemachine.donotpresent 155 | 156 | # Directories potentially created on remote AFP share 157 | .AppleDB 158 | .AppleDesktop 159 | Network Trash Folder 160 | Temporary Items 161 | .apdisk 162 | 163 | ## Windows 164 | ########## 165 | 166 | # Windows thumbnail cache files 167 | Thumbs.db 168 | ehthumbs.db 169 | ehthumbs_vista.db 170 | 171 | # Folder config file 172 | Desktop.ini 173 | 174 | # Recycle Bin used on file shares 175 | .BIN/ 176 | 177 | # Windows Installer files 178 | *.cab 179 | *.msi 180 | *.msm 181 | *.msp 182 | 183 | # End of https://www.gitignore.io/api/windows,linux,macos,purebasic 184 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to Pandoc Goodies 2 | 3 | Contributions are most welcome. The aim of the Pandoc Goodies project is gather a collection of useful resources for working with pandoc, therefore feel free to submit assets you've created for you personal workflow, so that others might benefit from them. 4 | 5 | Even if what you'd like to contribute doesn't quite fit the current project's structure, it doesn't mean that the project can't accomodate it. 6 | 7 | For any questions, proposals, and even to just provide links to third party assets you think should be included in Pandoc Goodies, feel free to open an issue: 8 | 9 | - [open new issue](https://github.com/tajmone/pandoc-goodies/issues/new) 10 | 11 | # Auto-Generated TOCs 12 | 13 | Table of Contents in markdown documents are handled via the [MarkdownTOC] package for [Sublime Text]. You'll notice in the mardkown sources the presence of these tags within HTML comments: 14 | 15 | ```html 16 | 17 | ... 18 | 19 | ``` 20 | 21 | Please don't remove them for they are needed for auto-updating the TOC at save time. Also, don't bother to manually update the TOC contents if you don't have Sublime Text and MarkdownTOC — I'll just updated it when merging-in the pull request. 22 | 23 | # TODO Lists 24 | 25 | If you'd like to see what new features are currently queued in our wishlist, check the `TODO` files scattered around the repo. 26 | 27 | - [`pp/TODO.md`](./pp/TODO.md) — whishlist and queued jobs for pp-macros. 28 | - [`templates/html5/github/TODO.md`](./templates/html5/github/TODO.md) — planned changes for GH Template. 29 | 30 | 31 | 34 | 35 | [MarkdownTOC]: https://packagecontrol.io/packages/MarkdownTOC "Go to MarkdownTOC page at Package Control" 36 | [Sublime Text]: https://www.sublimetext.com/ "Visit Sublime Text website" 37 | 38 | 39 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Tristano Ajmone 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /pp/TODO.md: -------------------------------------------------------------------------------- 1 | # PP-Macros TODO List 2 | 3 | Annotated list of pending macros changes and incubating ideas for the future… 4 | 5 | Feel free to add to this list new features you'd like to see implemented. 6 | 7 | # High Priority 8 | 9 | ## CSS Problems 10 | 11 | - [x] `GFM-TaskList.css`: 12 | + [x] fix `

` styles — Pandoc v2 is forcing paragraphs in list elements, which is causing too much spacing between list elements. 13 | 14 | ## Change Existing Macros 15 | 16 | ## New Macros 17 | 18 | - [ ] A macro for inecting inline CSS for Pandoc Line blocks — As of v2.x pandoc no longer adds inline CSS to Line blocks, but relies on the "`line-block`" class instead: 19 | ``` css 20 | div.line-block { 21 | white-space: pre-line; 22 | } 23 | ``` 24 | - [ ] `!mark(TEXT)` — shortcut to: `TEXT` 25 | 26 | # Lower Priority 27 | 28 | - [ ] **InlineFormatting** 29 | + [ ] `!kbd` provide different on-the-fly CSS stylings: 30 | * [ ] https://auth0.github.io/kbd/ 31 | * [ ] https://github.com/michaelhue/keyscss 32 | * [ ] http://html.com/tags/kbd/ 33 | 34 | 35 | # Wishlist 36 | 37 | - Pygments highlighting 38 | - Highlight.js highlighting — via Node cli, not in-browser. 39 | - Inegrate [RegEx Colorizer](https://github.com/slevithan/regex-colorizer) (JS flavored RegExes highlighter) 40 | - AsciiDoctor integration 41 | - Font Awesome "on demand" — a macro to include a FA icon as inline CSS, another macro to actually display (via CSS). 42 | - ~~[emoji](https://github.com/WebpageFX/emoji-cheat-sheet.com/) macros~~ (pandoc v2 supports them via [emoji extension](http://pandoc.org/MANUAL.html#extension-emoji)) 43 | 44 | 45 | -------------------------------------------------------------------------------- /pp/macros/.gitignore: -------------------------------------------------------------------------------- 1 | # ============================================================================== 2 | # PP-Macros Temp Files 3 | # ============================================================================== 4 | # Exclude temporary files created by PP-macros execution. 5 | # NOTE: They should alway be deleted by the macros themselves, but this is a 6 | # precaution to handle eventual residue files due to macros failures. 7 | 8 | _pp-tempfile*.tmp -------------------------------------------------------------------------------- /pp/macros/GFM-Alerts.css: -------------------------------------------------------------------------------- 1 | /*! "GFM-Alerts.css" v2.0 | 2017/11/21 | MIT License (MIT) 2 | Adapted by Tristano Ajmone from "flash.scss" of Primer CSS by GitHub Inc.: 3 | 4 | https://github.com/primer/primer/blob/master/modules/primer-alerts/lib/flash.scss 5 | http://primercss.io/archive/alerts/ 6 | 7 | Copyright (c) 2017 Tristano Ajmone. 8 | Copyright (c) 2017 GitHub Inc. 9 | */ 10 | .Alert, 11 | .Warning, 12 | .Error, 13 | .Success, 14 | .Note { 15 | padding: 11px; 16 | margin-bottom: 24px; 17 | border-style: solid; 18 | border-width: 1px; 19 | border-radius: 4px; 20 | } 21 | .Alert p, 22 | .Warning p, 23 | .Error p, 24 | .Success p, 25 | .Note p { 26 | margin-top: 0; 27 | } 28 | .Alert p:last-child, 29 | .Warning p:last-child, 30 | .Error p:last-child, 31 | .Success p:last-child, 32 | .Note p:last-child { 33 | margin-bottom: 0; 34 | } 35 | 36 | .Alert { 37 | color: #224466; 38 | background-color: #E2EEF9; 39 | border-color: #BAC6D3; 40 | } 41 | 42 | .Warning { 43 | color: #4C4A42; 44 | background-color: #FFF9EA; 45 | border-color: #DFD8C2; 46 | } 47 | 48 | .Error { 49 | color: #991111; 50 | background-color: #FCDEDE; 51 | border-color: #D2B2B2; 52 | } 53 | 54 | .Success { 55 | color: #22662C; 56 | background-color: #E2F9E5; 57 | border-color: #BAD3BE; 58 | } 59 | 60 | .Note { 61 | color: #2F363D; 62 | background-color: #F6F8FA; 63 | border-color: #D5D8DA; 64 | } 65 | 66 | .Alert h1, 67 | .Alert h2, 68 | .Alert h3, 69 | .Alert h4, 70 | .Alert h5, 71 | .Alert h6 { 72 | color: #224466; 73 | margin-bottom: 0; 74 | } 75 | 76 | .Warning h1, 77 | .Warning h2, 78 | .Warning h3, 79 | .Warning h4, 80 | .Warning h5, 81 | .Warning h6 { 82 | color: #4C4A42; 83 | margin-bottom: 0; 84 | } 85 | 86 | .Error h1, 87 | .Error h2, 88 | .Error h3, 89 | .Error h4, 90 | .Error h5, 91 | .Error h6 { 92 | color: #991111; 93 | margin-bottom: 0; 94 | } 95 | 96 | .Success h1, 97 | .Success h2, 98 | .Success h3, 99 | .Success h4, 100 | .Success h5, 101 | .Success h6 { 102 | color: #22662C; 103 | margin-bottom: 0; 104 | } 105 | 106 | .Note h1, 107 | .Note h2, 108 | .Note h3, 109 | .Note h4, 110 | .Note h5, 111 | .Note h6 { 112 | color: #2F363D; 113 | margin-bottom: 0; 114 | } 115 | 116 | .Alert h1:first-child, 117 | .Alert h2:first-child, 118 | .Alert h3:first-child, 119 | .Alert h4:first-child, 120 | .Alert h5:first-child, 121 | .Alert h6:first-child { 122 | margin-top: 0; 123 | } 124 | 125 | .Warning h1:first-child, 126 | .Warning h2:first-child, 127 | .Warning h3:first-child, 128 | .Warning h4:first-child, 129 | .Warning h5:first-child, 130 | .Warning h6:first-child { 131 | margin-top: 0; 132 | } 133 | 134 | .Error h1:first-child, 135 | .Error h2:first-child, 136 | .Error h3:first-child, 137 | .Error h4:first-child, 138 | .Error h5:first-child, 139 | .Error h6:first-child { 140 | margin-top: 0; 141 | } 142 | 143 | .Success h1:first-child, 144 | .Success h2:first-child, 145 | .Success h3:first-child, 146 | .Success h4:first-child, 147 | .Success h5:first-child, 148 | .Success h6:first-child { 149 | margin-top: 0; 150 | } 151 | 152 | .Note h1:first-child, 153 | .Note h2:first-child, 154 | .Note h3:first-child, 155 | .Note h4:first-child, 156 | .Note h5:first-child, 157 | .Note h6:first-child { 158 | margin-top: 0; 159 | } 160 | 161 | /*# sourceMappingURL=GFM-Alerts.css.map */ 162 | -------------------------------------------------------------------------------- /pp/macros/GFM-Alerts.pp: -------------------------------------------------------------------------------- 1 | !comment( "GitHub Alerts" pp-macros set ) 2 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 | "GFM-Alerts.pp" v2.1 (2017-11-21) | PP v2.0 4 | 5 | A set of macros for mimicking GitHub's Alerts (aka flash messages) within pandoc 6 | documents: 7 | 8 | -- http://primercss.io/alerts/ 9 | ------------------------------------------------------------------------------ 10 | MACROS LIST: 11 | 12 | -- !GFMAlert 13 | -- !GFMAlertWarn 14 | -- !GFMAlertError 15 | -- !GFMAlertSuccess 16 | -- !GFMAlertPlain 17 | -- !GFMAlertsInlineCSS 18 | 19 | INTERNAL-USE MACROS: 20 | 21 | -- !_buildGFMAlerts 22 | -------------------------------------------------------------------------------- 23 | OUT FORMAT: html 24 | OS SUPPORT: all 25 | REQUIREMENTS: 26 | -- "GFM-Alerts.css" must be included in final document's stylesheet. 27 | (Adapted from GitHub's Prime-CSS "flash.scss" module:) 28 | https://github.com/primer/primer-alerts/blob/master/lib/flash.scss 29 | -- Env var PP_MACROS_PATH must be set to the path of this folder in order for 30 | !GFMAlertsInlineCSS to be able to include "GFM-Alerts.css". 31 | -------------------------------------------------------------------------------- 32 | This file is part of "The Pandoc-Goodies PP-Macros Library": 33 | -- https://github.com/tajmone/pandoc-goodies/tree/master/pp 34 | 35 | (c) Tristano Ajmone 2017, MIT License. 36 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | 38 | 39 | 40 | 41 | !comment{ !_buildGFMAlerts v2.0 | 2017-10-25 } 42 | ```````````````````````````````````````````````````````````````````````````````` 43 | ** FOR INTERNAL USE ONLY! ** 44 | ```````````````````````````````````````````````````````````````````````````````` 45 | !define( _buildGFMAlerts ) 46 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 47 |

48 | !1 49 |
50 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 51 | 52 | 53 | 54 | 55 | !comment{ !GFMAlert v2.0 | 2017-10-25 } 56 | ```````````````````````````````````````````````````````````````````````````````` 57 | DECRIPTION: Wraps the contents of the macro's parameter in GitHub style Alert 58 |
s (aka "Flash messages"). 59 | Contents will be processed as markdown. 60 | USAGE: 61 | 62 | !Alert 63 | ~~~~~~~~~~~~~~ 64 | MARKDOWN BLOCK 65 | ~~~~~~~~~~~~~~ 66 | 67 | ```````````````````````````````````````````````````````````````````````````````` 68 | !define( GFMAlert ) 69 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | !define( AlertType )(Alert) 71 | !_buildGFMAlerts(!1) 72 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | 74 | 75 | 76 | 77 | !comment 78 | ```````````````````````````````````````````````````````````````````````````````` 79 | The following macros are just variations of the previous one. 80 | Same usage, different output colors. 81 | ```````````````````````````````````````````````````````````````````````````````` 82 | 83 | 84 | !define( GFMWarn ) 85 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 86 | !define( AlertType )(Warning) 87 | !_buildGFMAlerts(!1) 88 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 89 | 90 | 91 | 92 | !define( GFMError ) 93 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 94 | !define( AlertType )(Error) 95 | !_buildGFMAlerts(!1) 96 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 97 | 98 | 99 | 100 | !define( GFMSuccess ) 101 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 102 | !define( AlertType )(Success) 103 | !_buildGFMAlerts(!1) 104 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 105 | 106 | 107 | 108 | !define( GFMAlertNote ) 109 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 110 | !define( AlertType )(Note) 111 | !_buildGFMAlerts(!1) 112 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 113 | 114 | 115 | 116 | !comment 117 | ```````````````````````````````````````````````````````````````````````````````` 118 | !GFMAlertPlain is now just an alias to the new !GFMAlertNote --- the latter 119 | being the preferred syntax since it matches the actual class-name. 120 | ```````````````````````````````````````````````````````````````````````````````` 121 | !define( GFMAlertPlain ) 122 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 123 | !GFMAlertNote(!1) 124 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 125 | 126 | 127 | 128 | 129 | 130 | !comment{ !GFMAlertsInlineCSS v2.0 | 2017-10-25 } 131 | ```````````````````````````````````````````````````````````````````````````````` 132 | DECRIPTION: Provide GitHub-like CSS styling for Alerts by importing the file 133 | "GFM-Alerts.css" as an inline stylesheet. 134 | 135 | USAGE: Include (once) in your markdown document: 136 | 137 | !GFMAlertsInlineCSS 138 | 139 | REQUIREMENTS: 140 | -- Env var PP_MACROS_PATH must be set to the path of this folder in order for 141 | !kbdInlineCSS to be able to include "GFM-Alerts.css". 142 | ```````````````````````````````````````````````````````````````````````````````` 143 | !define(GFMAlertsInlineCSS) 144 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 145 | 148 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 149 | 150 | -------------------------------------------------------------------------------- /pp/macros/GFM-Alerts.scss: -------------------------------------------------------------------------------- 1 | /*! "GFM-Alerts.css" v2.0 | 2017/11/21 | MIT License (MIT) 2 | Adapted by Tristano Ajmone from "flash.scss" of Primer CSS by GitHub Inc.: 3 | 4 | https://github.com/primer/primer/blob/master/modules/primer-alerts/lib/flash.scss 5 | http://primercss.io/archive/alerts/ 6 | 7 | Copyright (c) 2017 Tristano Ajmone. 8 | Copyright (c) 2017 GitHub Inc. 9 | */ 10 | // ============================================================================== 11 | // GFM ALERTS 12 | // ============================================================================== 13 | // "GFM-Alerts.scss" v2.0 | 2017/11/21 | by Tristano Ajmone | MIT License (MIT) 14 | // 15 | // This file was freely adapted from the Primer CSS project by GitHub Inc.: 16 | // 17 | // -- https://github.com/primer/primer-css/blob/master/modules/primer-alerts/lib/flash.scss 18 | // 19 | // Copyright (c) 2016 GitHub Inc. Released under The MIT License (MIT). 20 | // ------------------------------------------------------------------------------ 21 | // Alerts Color Palette 22 | // ------------------------------------------------------------------------------ 23 | // These colors are from the older GitHub color scheme (the new Alerts are too 24 | // bright for my tastes, I preferr the older colors which are most pastel-like) 25 | // The gray tones of '.Note' (which isn't part of Primer's Alerts) were added 26 | // by me, using Primer's color scheme as a reference. 27 | 28 | // Alert (Default) » Blue 29 | $Alert-Text: #224466; 30 | $Alert-BG: #E2EEF9; 31 | $Alert-Border: #BAC6D3; 32 | 33 | // Alert Warn » Yellow 34 | $AlertWarn-Text: #4C4A42; 35 | $AlertWarn-BG: #FFF9EA; 36 | $AlertWarn-Border: #DFD8C2; 37 | 38 | // Alert Error » Red 39 | $AlertError-Text: #991111; 40 | $AlertError-BG: #FCDEDE; 41 | $AlertError-Border: #D2B2B2; 42 | 43 | // Alert Success » Green 44 | $AlertSuccess-Text: #22662C; 45 | $AlertSuccess-BG: #E2F9E5; 46 | $AlertSuccess-Border: #BAD3BE; 47 | 48 | // Alert Note » Gray (not part of Primer CSS) 49 | $AlertNote-Text: #2F363D; 50 | $AlertNote-BG: #F6F8FA; 51 | $AlertNote-Border: #D5D8DA; 52 | 53 | // ------------------------------------------------------------------------------ 54 | 55 | // NOTE: baseline is 24px 56 | 57 | .Alert, 58 | .Warning, 59 | .Error, 60 | .Success, 61 | .Note { 62 | padding: 11px; // ie: (baseline/2)-border => (24px/2)-1px 63 | margin-bottom: 24px; 64 | border-style: solid; 65 | border-width: 1px; 66 | border-radius: 4px; 67 | p { 68 | margin-top: 0; 69 | 70 | &:last-child { 71 | margin-bottom: 0; 72 | } 73 | } 74 | } 75 | 76 | .Alert { 77 | color: $Alert-Text; 78 | background-color: $Alert-BG; 79 | border-color: $Alert-Border; 80 | } 81 | .Warning { 82 | color: $AlertWarn-Text; 83 | background-color: $AlertWarn-BG; 84 | border-color: $AlertWarn-Border; 85 | } 86 | .Error { 87 | color: $AlertError-Text; 88 | background-color: $AlertError-BG; 89 | border-color: $AlertError-Border; 90 | } 91 | .Success { 92 | color: $AlertSuccess-Text; 93 | background-color: $AlertSuccess-BG; 94 | border-color: $AlertSuccess-Border; 95 | } 96 | .Note { 97 | color: $AlertNote-Text; 98 | background-color: $AlertNote-BG; 99 | border-color: $AlertNote-Border; 100 | } 101 | 102 | // ============================================================================== 103 | // Headings 1-6 Inside Alerts 104 | // ============================================================================== 105 | // ALL HEADINGS: Set right Alert color, and remove margin: 106 | .Alert h1, 107 | .Alert h2, 108 | .Alert h3, 109 | .Alert h4, 110 | .Alert h5, 111 | .Alert h6 { 112 | color: $Alert-Text; 113 | margin-bottom: 0; 114 | } 115 | .Warning h1, 116 | .Warning h2, 117 | .Warning h3, 118 | .Warning h4, 119 | .Warning h5, 120 | .Warning h6 { 121 | color: $AlertWarn-Text; 122 | margin-bottom: 0; 123 | } 124 | .Error h1, 125 | .Error h2, 126 | .Error h3, 127 | .Error h4, 128 | .Error h5, 129 | .Error h6 { 130 | color: $AlertError-Text; 131 | margin-bottom: 0; 132 | } 133 | .Success h1, 134 | .Success h2, 135 | .Success h3, 136 | .Success h4, 137 | .Success h5, 138 | .Success h6 { 139 | color: $AlertSuccess-Text; 140 | margin-bottom: 0; 141 | } 142 | .Note h1, 143 | .Note h2, 144 | .Note h3, 145 | .Note h4, 146 | .Note h5, 147 | .Note h6 { 148 | color: $AlertNote-Text; 149 | margin-bottom: 0; 150 | } 151 | // ------------------------------------------------------------------------------ 152 | // 1st HEADINGS: Remove top margin in first H1-6 occuring inside Alerts: 153 | .Alert h1:first-child, 154 | .Alert h2:first-child, 155 | .Alert h3:first-child, 156 | .Alert h4:first-child, 157 | .Alert h5:first-child, 158 | .Alert h6:first-child { 159 | margin-top: 0; 160 | } 161 | .Warning h1:first-child, 162 | .Warning h2:first-child, 163 | .Warning h3:first-child, 164 | .Warning h4:first-child, 165 | .Warning h5:first-child, 166 | .Warning h6:first-child { 167 | margin-top: 0; 168 | } 169 | .Error h1:first-child, 170 | .Error h2:first-child, 171 | .Error h3:first-child, 172 | .Error h4:first-child, 173 | .Error h5:first-child, 174 | .Error h6:first-child { 175 | margin-top: 0; 176 | } 177 | .Success h1:first-child, 178 | .Success h2:first-child, 179 | .Success h3:first-child, 180 | .Success h4:first-child, 181 | .Success h5:first-child, 182 | .Success h6:first-child { 183 | margin-top: 0; 184 | } 185 | .Note h1:first-child, 186 | .Note h2:first-child, 187 | .Note h3:first-child, 188 | .Note h4:first-child, 189 | .Note h5:first-child, 190 | .Note h6:first-child { 191 | margin-top: 0; 192 | } -------------------------------------------------------------------------------- /pp/macros/INIT-ENV.bat: -------------------------------------------------------------------------------- 1 | SET "PP_MACROS_PATH=%~dp0" 2 | EXIT /B -------------------------------------------------------------------------------- /pp/macros/INIT-ENV.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | export PP_MACROS_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/" 4 | 5 | echo "PP_MACROS_PATH: " $PP_MACROS_PATH 6 | -------------------------------------------------------------------------------- /pp/macros/InlineFormatting.pp: -------------------------------------------------------------------------------- 1 | !comment( "Inline Formatting" pp-macros set ) 2 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 | "InlineFormatting.pp" v2.0 (2017-10-25) | PP v2.0 4 | 5 | A set of shortcut-macros for various standard html inline elements. 6 | -------------------------------------------------------------------------------- 7 | MACROS LIST: 8 | 9 | - !kbd 10 | - !kbdInlineCSS 11 | 12 | -------------------------------------------------------------------------------- 13 | OUT FORMAT: html 14 | OS SUPPORT: all 15 | -------------------------------------------------------------------------------- 16 | This file is part of "The Pandoc-Goodies PP-Macros Library": 17 | -- https://github.com/tajmone/pandoc-goodies/tree/master/pp 18 | 19 | (c) Tristano Ajmone 2017, MIT License. 20 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 21 | 22 | 23 | 24 | 25 | !comment{ !kbd v2.0 | 2017-10-25 } 26 | ```````````````````````````````````````````````````````````````````````````````` 27 | DECRIPTION: Wraps the passed keys in tags, separating each key from its 28 | predecessor with a "+" char. Accepts up to 4 keys. 29 | USAGE: 30 | 31 | !kbd(KEY1)[(KEY2)(KEY3)(KEY4)] 32 | 33 | ```````````````````````````````````````````````````````````````````````````````` 34 | !define( kbd )( 35 | !1!ifdef(2)(+!2)!ifdef(3)(+!3)!ifdef(4)(+!4) 36 | )!comment `````````````````````````````````` `````````````````````````````````` 37 | 38 | 39 | 40 | !comment{ !kbdInlineCSS v2.0 | 2017-10-25 } 41 | ```````````````````````````````````````````````````````````````````````````````` 42 | DECRIPTION: Provide GitHub-like CSS styling for tags by importing the file 43 | "kbd_GitHub.css" as an inline stylesheet. 44 | 45 | USAGE: Include (once) in your markdown document: 46 | 47 | !kbdInlineCSS 48 | 49 | REQUIREMENTS: 50 | -- Env var PP_MACROS_PATH must be set to the path of this folder in order for 51 | !kbdInlineCSS to be able to include "kbd_GitHub.css". 52 | ```````````````````````````````````````````````````````````````````````````````` 53 | !define( kbdInlineCSS ) 54 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | 58 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 59 | -------------------------------------------------------------------------------- /pp/macros/README.md: -------------------------------------------------------------------------------- 1 | # PP Macros 2 | 3 | pandoc-goodies/pp/macros/ 4 | 5 | 6 | # Files List 7 | 8 | 9 | - [`CHANGELOG`](./CHANGELOG) --- List changes in macros library. 10 | - [`INIT-ENV.bat`](./INIT-ENV.bat) --- Env setup for using macros library (Win CMD version) 11 | - [`INIT-ENV.sh`](./INIT-ENV.sh) --- Env setup for using macros library (\*nix* shell version) 12 | - [`macros.pp`](./macros.pp) --- Main macros module which loads all others: 13 | + __GitHub Alerts__ --- pp-macros set: 14 | * [`GFM-Alerts.pp`](./GFM-Alerts.pp) --- Macros definition module. 15 | * [`GFM-Alerts.css`](./GFM-Alerts.css) --- Stylesheet injected by `!GFMAlertsInlineCSS` macro. 16 | * [`GFM-Alerts.scss`](./GFM-Alerts.scss) --- Sass source file for generating `GFM-Alerts.css` 17 | + __GFM Task Lists__ --- pp-macros set: 18 | * [`GFM-TaskList.pp`](./GFM-TaskList.pp) --- Macros definition module. 19 | * [`GFM-TaskList.css`](./GFM-TaskList.css) --- Stylesheet injected by `!TaskListInlineCSS` macro. 20 | + __Highlight__ --- pp-macros set: 21 | - [`Highlight.pp`](./Highlight.pp) --- Macros definition module. 22 | + __Inline Formatting__ --- pp-macros set: 23 | * [`InlineFormatting.pp`](./InlineFormatting.pp) --- Macros definition module. 24 | * [`kbd_GitHub.css`](./kbd_GitHub.css) --- Stylesheet injected by `!kbdInlineCSS` macro. 25 | - [`SASS-BUILD.bat`](./SASS-BUILD.bat) --- Script to compile all Sass files to CSS. 26 | 27 | 28 | -------------------------------------------------------------------------------- /pp/macros/SASS-BUILD.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | ECHO. 3 | ECHO ============================================================================== 4 | ECHO BUILD CSS STYLESHETS FROM SASS SCSS SOURCES 5 | ECHO ============================================================================== 6 | :: This script requires Dart Sass to be installed on the system: 7 | :: https://github.com/sass/dart-sass 8 | :: 9 | :: On Windows, you can use Chocolatey to install Dart Sass and keep it updated: 10 | :: https://chocolatey.org/packages/sass 11 | ::------------------------------------------------------------------------------ 12 | ECHO -------------------------------------------------- 13 | ECHO Force building SASS project... 14 | ECHO. 15 | CALL SASS --source-map --style=expanded ./:./ 16 | ECHO. 17 | CHOICE /C:YN /D:N /T:5 /M "Do you want to watch the Sass project" 18 | IF errorlevel 2 EXIT /B 19 | ECHO -------------------------------------------------- 20 | ECHO Watching SASS project... 21 | ECHO. 22 | CALL SASS --source-map --style=expanded --watch ./:./ 23 | EXIT /B 24 | -------------------------------------------------------------------------------- /pp/macros/kbd_GitHub.css: -------------------------------------------------------------------------------- 1 | /* ============================================================================== 2 | Adapted from "GitHub Markdown CSS" (c) Sindre Sorhus, MIT License (MIT): 3 | -- https://github.com/sindresorhus/github-markdown-css 4 | ============================================================================== */ 5 | kbd { 6 | display: inline-block; 7 | padding: 3px 5px; 8 | font-family: monospace, monospace; 9 | font-size: 11px; 10 | line-height: 10px; 11 | color: #444d56; 12 | vertical-align: middle; 13 | background-color: #fafbfc; 14 | border: solid 1px #c6cbd1; 15 | border-bottom-color: #959da5; 16 | border-radius: 3px; 17 | box-shadow: inset 0 -1px 0 #959da5; 18 | } -------------------------------------------------------------------------------- /pp/macros/macros.pp: -------------------------------------------------------------------------------- 1 | !comment( pp-macros loader module ) 2 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 | "macros.pp v2.1 (2019-06-08) | PP v2.8 4 | 5 | The main macro that imports all other macro definition files. 6 | 7 | -------------------------------------------------------------------------------- 8 | This file is part of "The Pandoc-Goodies PP-Macros Library": 9 | -- https://github.com/tajmone/pandoc-goodies/tree/master/pp 10 | 11 | (c) Tristano Ajmone 2017, MIT License. 12 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 13 | 14 | !import(GFM-Alerts.pp) 15 | !import(Highlight.pp) 16 | !import(InlineFormatting.pp) 17 | -------------------------------------------------------------------------------- /pp/test/GFM-Alerts.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: GFM-Alerts PP-Macros Test 3 | pagetitle: GFM-Alerts Test 4 | ... 5 | 6 | !import(RUN-TESTS.pp) 7 | 8 | This is a run test of the **GFM-Alerts** pp-macros set. 9 | 10 | # Files List 11 | 12 | - macros files: 13 | + [`GFM-Alerts.pp`](../macros/GFM-Alerts.pp) — macros definition module. 14 | + [`GFM-Alerts.css`](../macros/GFM-Alerts.css) — CSS style for GFM-Alerts elements. 15 | - extra files: 16 | + [`github.css`](./github.css) — basic document CSS styling. 17 | 18 | # Macros list 19 | 20 | !raw{ 21 | - `!GFMAlertsInlineCSS` — Inject required CSS 22 | - `!GFMAlert( CONTENTS )` — **Alert** (blue) 23 | - `!GFMError( CONTENTS )` — **Warning** (red) 24 | - `!GFMWarn( CONTENTS )` — **Error** (yellow) 25 | - `!GFMSuccess( CONTENTS )` — **Success** (green) 26 | - `!GFMAlertNote( CONTENTS )` — **Note** (grey) 27 | - `!GFMAlertPlain( CONTENTS )` — same as Note (alias of `!GFMAlertNote`) 28 | } 29 | 30 | # Add Alerts CSS 31 | 32 | We need the CSS definition for viewing alerts. 33 | We'll use the `!raw(!GFMAlertsInlineCSS)` macro to inject the contents of `GFM-Alerts.css` as an inline stylesheet: 34 | 35 | ``` 36 | !raw(!GFMAlertsInlineCSS) 37 | ``` 38 | 39 | this macro emits the following raw html: 40 | 41 | ``` html 42 | !GFMAlertsInlineCSS 43 | ``` 44 | 45 | !GFMAlertsInlineCSS 46 | 47 | 48 | # Alerts Tests 49 | 50 | ## Default Alert 51 | 52 | !def(TEST)(!GFMAlert(**Default** --- Lorem ipsum dolor sit amet, pri cu libris dicunt.)) 53 | 54 | !RUNTEST 55 | 56 | ## Warning Alert 57 | 58 | !def(TEST)(!GFMWarn(**Warning** --- Lorem ipsum dolor sit amet, pri cu libris dicunt.)) 59 | 60 | !RUNTEST 61 | 62 | ## Error Alert 63 | 64 | !def(TEST)(!GFMError(**Error** --- Lorem ipsum dolor sit amet, pri cu libris dicunt.)) 65 | 66 | !RUNTEST 67 | 68 | ## Success Alert 69 | 70 | !def(TEST)(!GFMSuccess(**Success** --- Lorem ipsum dolor sit amet, pri cu libris dicunt.)) 71 | 72 | !RUNTEST 73 | 74 | ## Note Alert 75 | 76 | > **NOTE**: This Alert is not part of GitHub's original set of Alerts; I've added it. 77 | 78 | !def(TEST)(!GFMAlertNote(**Note** --- Lorem ipsum dolor sit amet, pri cu libris dicunt.)) 79 | 80 | !RUNTEST 81 | 82 | ## Plain Alert 83 | 84 | > **NOTE**: `!raw(!GFMAlertPlain)` is just an alias of `!raw(!GFMAlertNote)`! 85 | > The latter is the preferred syntax because it resembles the actual class 86 | > name used in the `
` tag. 87 | 88 | !def(TEST)(!GFMAlertPlain(**Plain** --- Lorem ipsum dolor sit amet, pri cu libris dicunt.)) 89 | 90 | !RUNTEST 91 | 92 | -------------------------------------- 93 | 94 | # Pandoc New Fenced Divs 95 | 96 | Pandoc 2.0 introduced the [`fenced_divs`] extension which allows special fenced syntax for native Div blocks. Pandoc markdown flavour supports this extension by default, and it can optionally be enabled for other markdown flavours too. 97 | 98 | Fenced divs can be used instead of PP Alert macros, achieving the same effect: 99 | 100 | !def(TEST) 101 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 102 | ::: Warning :::::: 103 | **Warning** --- This is a Warning-Alert. 104 | :::::::::::::::::: 105 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 106 | 107 | !RUNSIMPLETEST 108 | 109 | ... where you only need to insert after the opening `:::` the class name of the desired GFM-Alert --- ie: one of: 110 | 111 | - `.Alert` 112 | - `.Warning` 113 | - `.Error` 114 | - `.Success` 115 | - `.Note` 116 | 117 | ## Advantages 118 | 119 | Using fenced divs has the advantage of not injecting raw HTML into the document, allowing conversion to other formats too. Furthermore, the fenced divs syntax allows to specify multiple classes and an identifier: 120 | 121 | !def(TEST) 122 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 123 | ::: { .Success #custom-id .other-class } :::::: 124 | **Success** --- This is a Success-Alert. 125 | :::::::::::::::::: 126 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 127 | 128 | !RUNSIMPLETEST 129 | 130 | ... which in the final HTML produces the following `
` tag: 131 | 132 | ``` html 133 |
134 | ``` 135 | 136 | 137 | [`fenced_divs`]: http://pandoc.org/MANUAL.html#extension-fenced_divs "Link to pandoc documentation on 'fenced-divs'" -------------------------------------------------------------------------------- /pp/test/Highlight.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Highlight PP-Macros Test 3 | pagetitle: Highlight Test 4 | ... 5 | 6 | !import(RUN-TESTS.pp) 7 | !GFMAlertsInlineCSS 8 | 9 | This is a run test of the GFM-TaskList pp-macros set. 10 | 11 | ## Files List 12 | 13 | - macros files: 14 | + [`Highlight.pp`](../macros/Highlight.pp) — macros definition module. 15 | - extra files: 16 | + [`github.css`](./github.css) — basic document CSS styling. 17 | + [`code-example.pb`](./code-example.pb) — PureBASIC code example. 18 | 19 | ## Macros list 20 | 21 | !raw{ 22 | - `!HighlightFile( FILE )( LANG )[( OPTIONS )]` — imports and syntax-highlights and external file. 23 | - `!Highlight( LANG )([ OPTIONS] )( CODE )` — syntax-highlights the code block defined in `CODE`. 24 | - `!HighlightInlineTheme( THEME NAME )` — retrives a Highlight theme and injects its CSS into the documents. 25 | } 26 | 27 | # Add Highlight Color Theme 28 | 29 | For these examples we'll import Highlight's `edit-purebasic` theme into the document via the `!raw(!HighlightInlineTheme)` macro: 30 | 31 | ``` 32 | !raw(!HighlightInlineTheme(edit-purebasic)) 33 | ``` 34 | 35 | this macro emits the following raw html: 36 | 37 | ``` html 38 | !HighlightInlineTheme(edit-purebasic) 39 | ``` 40 | 41 | !HighlightInlineTheme(edit-purebasic) 42 | 43 | Now the CSS definition for PureBASIC code blocks (via Highlight) is available document-wide and you'll see it aplied to the examples in this document. 44 | 45 | # Highlighting an External File 46 | 47 | The `!raw(!HighlightFile)` macro takes an external source code file, passes it to Highlight tool for syntax coloring, and injects into the document the raw HTML results as a `
` block.
 48 | 
 49 | The syntax is:
 50 | 
 51 |     !raw{!HighlightFile( FILE )( LANG )[( OPTIONS )]}
 52 | 
 53 | ... taking the following parameters:
 54 | 
 55 | - `FILE` (mandatory) — The source file to syntax-color.
 56 | - `LANG` (mandatory) — The language of the source (eg: HTML, Python, etc.).
 57 | - `OPTIONS` (facultative) — Further options to pass to Highlight during invocation.
 58 | 
 59 | !GFMAlertPlain
 60 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 61 | __NOTE__: The Highlight macros will also add the string passed as the `LANG` param to the class of both  the `
` and `` tags in the final HTML result:
 62 | 
 63 | ``` html
 64 | 

 65 | ```
 66 | 
 67 | This allows finer control of how the code should look like, via custom CSS.
 68 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 69 | 
 70 | 
 71 | ## Basic Example
 72 | 
 73 | We import the PureBASIC example file "`code-example.pb`" without passing any extra options to Highlight:
 74 | 
 75 | !def(TEST)(!HighlightFile(code-example.pb)(purebasic))
 76 | 
 77 | !RUNTEST
 78 | 
 79 | ## Example Using Options
 80 | 
 81 | Now we import the same file, this time passing some extra options to Highlight in order to show line numbers:
 82 | 
 83 | !def(TEST)
 84 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 85 | !HighlightFile(code-example.pb)(purebasic)(--line-numbers --line-number-length=1)
 86 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 87 | 
 88 | 
 89 | !RUNTEST
 90 | 
 91 | # Highlighting a Code Block
 92 | 
 93 | The `!raw(!Highlight)` macro takes an block of source code and passes it to Highlight tool for syntax coloring, and injects into the document the raw HTML results as a `
` block.
 94 | 
 95 | It's similar to the `!raw(!HighlightFile)` macro, except it relies on source code defined inside the current document instead of an external file. So we won't show the raw html emitted in the following examples, just the macro used and the final result.
 96 | 
 97 | The syntax is:
 98 | 
 99 |     !raw{!Highlight( LANG )( OPTIONS )
100 |     ~~~~~
101 |     CODE
102 |     ~~~~~
103 |     }
104 | 
105 | ... taking the following parameters:
106 | 
107 | - `LANG` (mandatory) — The language of the source (eg: HTML, Python, etc.).
108 | - `OPTIONS` (can be empty) — Further options to pass to Highlight during invocation. If none desired, just pass empty value.
109 | - `CODE` (mandatory) — The block of source code to syntax-color.
110 | 
111 | > __NOTE 1__: The `CODE` parameter is passed between lines of tildas instead of brackets. From PP's documentation:
112 | > 
113 | > > The last argument can be enclosed between lines of tildas or backquotes (of the same length) instead of parenthesis, brackets or braces and. This is useful for literate programming, diagrams or scripts (see examples). Code block arguments are not stripped: spaces and blank lines are preserved.
114 | 
115 | 
116 | 
117 | > **NOTE 2**: This macro, when run inside Windows CMD, creates a temporary file (named “`_pp-tempfileX.tmp`”, where `X` is a numeric counter) in the macros folder (`/pp/macros/`) for each macro call in the document, to temporarily store the code to highlight. At each PP invocation the `X` counter is reset, and the previous temp files are written over. These temporary files are set to be ignored by Git, so you shouldn't worry about them.
118 | > 
119 | > When run inside Shell/Bash (including Git Bash for Windows) it doesn't write any temporary files to disk.
120 | 
121 | ## Basic Example
122 | 
123 | We now define a block of PureBASIC code and pass it to Highlight without any extra options:
124 | 
125 | 
126 | !def(TEST)(!Highlight(purebasic)()
127 | ~~~~~~~~~~
128 | ; PureBASIC 5.60
129 | For i=1 To 10
130 |   Debug("Counting " + Str(i))
131 | Next
132 | ~~~~~~~~~~
133 | )
134 | 
135 | !RUNSIMPLETEST
136 | 
137 | ## Example Using Options
138 | 
139 | We now define a block of PureBASIC code and pass it to Highlight, this time providing some extra options to Highlight in order to show line numbers:
140 | 
141 | 
142 | !def(TEST)
143 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
144 | !Highlight(purebasic)(--line-numbers --line-number-length=1)
145 | ~~~~~~~~~~
146 | ; PureBASIC 5.60
147 | For i=1 To 10
148 |   Debug("Counting " + Str(i))
149 | Next
150 | ~~~~~~~~~~
151 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
152 | 
153 | !RUNSIMPLETEST
154 | 
155 | 
156 | 


--------------------------------------------------------------------------------
/pp/test/InlineFormatting.md:
--------------------------------------------------------------------------------
 1 | ---
 2 | title:      InlineFormatting PP-Macros Test
 3 | pagetitle:  InlineFormatting Test
 4 | ...
 5 | 
 6 | !import(RUN-TESTS.pp)
 7 | 
 8 | This is a run test of the __Inline Formatting__ pp-macros set.
 9 | 
10 | ## Files List
11 | 
12 | - macros files:
13 |     + [`InlineFormatting.pp`](../macros/InlineFormatting.pp) — macros definition module.
14 |     + [`kbd_GitHub.css`](../macros/kbd_GitHub.css) — CSS style for keystrokes.
15 | - extra files:
16 |     + [`github.css`](./github.css) — basic document CSS styling.
17 | 
18 | ## Macros list
19 | 
20 | !raw{
21 | -   `!kbd( KEY1 )[( KEY2 )( KEY3 )( KEY4 )]` — keystrokes in `` tags.
22 | -   `!kbdInlineCSS` — Inject required CSS (“`kbd_GitHub.css`”)
23 | }
24 | 
25 | # Keystrokes (``)
26 | 
27 | The `!raw(!kbd)` macro is a fast way to represent up to four Keystrokes. It has the following syntax:
28 | 
29 |     !raw(!kbd( KEY1 )[( KEY2 )( KEY3 )( KEY4 )])
30 | 
31 | ... where only the first parameter is mandatory.
32 | 
33 | Example:
34 | 
35 | !kbd(KEY1)(KEY2)(KEY3)(KEY4)
36 | 
37 | ## Keystrokes CSS
38 | 
39 | We need a custom CSS definition for viewing Keystrokes properly.
40 | We'll use the `!raw(!kbdInlineCSS)` macro to inject the contents of `kbd_GitHub.css` as inline stylesheet:
41 | 
42 | ```
43 | !raw(!kbdInlineCSS)
44 | ```
45 | 
46 | this macro emits the following raw html:
47 | 
48 | ``` html
49 | !kbdInlineCSS
50 | ```
51 | 
52 | !kbdInlineCSS
53 | 
54 | Now the CSS definition is available document-wide and you'll see it aplied to the Keystroke examples herein.
55 | 
56 | Of course, you can use your own CSS definitions instead of the one produced by the `!raw(!kbdInlineCSS)` macro. This macro is just a convenient quick solution.
57 | 
58 | ## Single Key
59 | 
60 | !def(TEST)(!kbd(CANC))
61 | 
62 | !RUNTEST
63 | 
64 | ## Two Keys
65 | 
66 | !def(TEST)(!kbd(Ctr)(Z))
67 | 
68 | !RUNTEST
69 | 
70 | ## Three Keys
71 | 
72 | !def(TEST)(!kbd(Ctr)(SHIFT)(S))
73 | 
74 | !RUNTEST
75 | 
76 | ## Four Keys
77 | 
78 | !def(TEST)(!kbd(Ctrl)(SHIFT)(Alt-GR)(j))
79 | 
80 | !RUNTEST


--------------------------------------------------------------------------------
/pp/test/LICENSE:
--------------------------------------------------------------------------------
 1 | MIT License
 2 | 
 3 | The "github.css" file in this folder is Copyright (c) Tristano Ajmone, 2017,
 4 | released under the MIT License (MIT); it contains readaptations of substantial
 5 | portions of the following third party softwares:
 6 | 
 7 | (1) "GitHub Markdown CSS", Copyright (c) Sindre Sorhus, MIT License (MIT).
 8 |     -- https://github.com/sindresorhus/github-markdown-css/
 9 | (2) "Primer CSS", Copyright (c) 2016 GitHub Inc., MIT License (MIT).
10 |     -- http://primercss.io/
11 |     -- https://github.com/primer/primer-css
12 | 
13 | Permission is hereby granted, free of charge, to any person obtaining a copy
14 | of this software and associated documentation files (the "Software"), to deal
15 | in the Software without restriction, including without limitation the rights
16 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17 | copies of the Software, and to permit persons to whom the Software is
18 | furnished to do so, subject to the following conditions:
19 | 
20 | The above copyright notice and this permission notice shall be included in all
21 | copies or substantial portions of the Software.
22 | 
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29 | SOFTWARE.
30 | 


--------------------------------------------------------------------------------
/pp/test/RUN-TESTS.bat:
--------------------------------------------------------------------------------
 1 | @ECHO OFF
 2 | CLS
 3 | ECHO ==============================================================================
 4 | ECHO                            RUNNING PP-MACROS TESTS                            
 5 | ECHO ==============================================================================
 6 | ::   REQUIRES: PANDOC >= v2.0 | PP >= v2.0
 7 | 
 8 | 
 9 | :: Load the required env-var...
10 | CALL ..\macros\INIT-ENV.bat
11 | 
12 | :: Run test on every *.md file in this folder...
13 | FOR  %%i  IN (*.md) DO (
14 |     ECHO -- NOW PROCESSING:
15 |     ECHO    %%i
16 |     CALL :PPCONVERT "%%i"
17 |     IF ERRORLEVEL 1 (
18 |         ECHO    ERROR -- Something went wrong! 1>&2
19 |     ) ELSE (
20 |         ECHO    DONE!
21 |     )
22 | )
23 | 
24 | EXIT /B
25 | 
26 | :: ==============================================================================
27 | ::                               PPCONVERT FUNCTION                              
28 | :: ==============================================================================
29 | :PPCONVERT
30 | 
31 | pp  %PP_MACROS_PATH%macros.pp ^
32 |     %1 ^
33 |   | pandoc  -f markdown+smart ^
34 |             -t html5 ^
35 |             --css=github.css ^
36 |             --standalone ^
37 |             -o %~n1.html


--------------------------------------------------------------------------------
/pp/test/RUN-TESTS.pp:
--------------------------------------------------------------------------------
 1 | !comment( RUNTEST )
 2 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 3 | The RUNTEST macro is a shortcut for displaying the text emitted by each tested
 4 | macro in three ways:
 5 | 
 6 | 1. Display the macro definition
 7 | 2. Dispaly the raw emitted text
 8 | 3. Display the actual macro result
 9 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10 | 
11 | !def(RUNTEST)(
12 | macro used:
13 | 
14 | ```
15 | !rawdef(TEST)
16 | ```
17 | 
18 | raw html output:
19 | 
20 | ``` html
21 | !TEST
22 | ```
23 | 
24 | result preview:
25 | 
26 | !TEST
27 | )
28 | 
29 | !comment( RUNSIMPLETEST )
30 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31 | The RUNSIMPLETEST macro is a shortcut for displaying the text emitted by each
32 | tested macro in two ways:
33 | 
34 | 1. Display the macro definition
35 | 2. Display the actual macro result
36 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | !def(RUNSIMPLETEST)(
38 | macro used:
39 | 
40 | ```
41 | !rawdef(TEST)
42 | ```
43 | 
44 | result preview:
45 | 
46 | !TEST
47 | )


--------------------------------------------------------------------------------
/pp/test/RUN-TESTS.sh:
--------------------------------------------------------------------------------
 1 | #!/bin/bash
 2 | 
 3 | # ===============================
 4 | # INITIALIZE REQUIRED ENV VARS...
 5 | # ===============================
 6 | . ../macros/INIT-ENV.sh
 7 | 
 8 | for i in *.md; do
 9 |   echo "-- NOW PROCESSING: $i"
10 |   pp ../macros/macros.pp $i  \
11 |   | pandoc  -f markdown      \
12 |       -t html5         \
13 |       --css=github.css \
14 |       --standalone     \
15 |       -o ${i%.*}.html
16 | done
17 | 


--------------------------------------------------------------------------------
/pp/test/TODO:
--------------------------------------------------------------------------------
 1 | # Tests TODOs LIST
 2 | 
 3 | - [x] `github.css`:
 4 |     - [x] prevent code blocks overflowing --- fixed with:
 5 |         ```css
 6 |         pre.sourceCode {
 7 |           overflow: auto;
 8 |         }
 9 |         ```
10 | 


--------------------------------------------------------------------------------
/pp/test/code-example.pb:
--------------------------------------------------------------------------------
 1 | ; PureBASIC 5.60 Example
 2 | 
 3 | For i=5 To 1 Step -1
 4 |   TEXT$ = "Iteration number: " + Str(i) + ~"\n\nDo you wish to continue?"
 5 |   UserChoice = MessageRequester("Countdown Dialog", TEXT$, #PB_MessageRequester_YesNo | #PB_MessageRequester_Info)
 6 |   If UserChoice = #PB_MessageRequester_No
 7 |     Break
 8 |   EndIf
 9 | Next
10 | 


--------------------------------------------------------------------------------
/skylighting/README.md:
--------------------------------------------------------------------------------
 1 | # Skylighting Assets
 2 | 
 3 | This directory tree gathers various assets for [Skylighting], the syntax highlighter used by pandoc — currently only themes and stylesheets, but in the future it might host also additional syntax definitions.
 4 | 
 5 | 
 6 | -----
 7 | 
 8 | **Table of Contents**
 9 | 
10 | 
11 | 
12 | - [Assets Lists](#assets-lists)
13 | - [Pandoc Highlighting Engine](#pandoc-highlighting-engine)
14 |     - [About Skilighting](#about-skilighting)
15 |     - [Supported Syntaxes](#supported-syntaxes)
16 | 
17 | 
18 | 
19 | -----
20 | 
21 | # Assets Lists
22 | 
23 | - [`/css/`](./css/) — Sass & CSS resources for customizing HTML themes.
24 | - [`/themes/`](./themes/) — resources for KDE themes (JSON).
25 | - [`Tokens-Guide.md`](./Tokens-Guide.md) — description of skylighting tokens, form KDE/Kate documentation.
26 | - [`Tokens-CSS.md`](./Tokens-CSS.md) — lookup tables for theme tokens to CSS classes equivalences.
27 | 
28 | # Pandoc Highlighting Engine
29 | 
30 | Pandoc features a [built-in syntax highlighter] with over 120 syntaxes definitions ([see full list]), and eight ready-to-use highlighting styles to choose from.
31 | 
32 | Highlighted code blocks can optionally have line numbers, and it's also possible to specify the starting line number.
33 | 
34 | As of pandoc v2, it's now possible to load dynamically custom syntax definitions and styles for highlighting, via the new `--syntax-definition=FILE` and `--highlight-style=STYLE|FILE` options.
35 | 
36 | 
37 | ## About Skilighting
38 | 
39 | - https://github.com/jgm/skylighting
40 | 
41 | Since [version 1.19.2]  (Jan 2017) pandoc switched its internal highlighting engine from [highlighting-kate] to [skylighting].
42 | 
43 | ## Supported Syntaxes
44 | 
45 | As of [v2.7.2], pandoc supports highlighting for 129 languages/syntaxes. You can query pandoc for the full list via:
46 | 
47 |     pandoc --list-highlight-languages
48 | 
49 | |                 |              |               |                |               |
50 | |-----------------|--------------|---------------|----------------|---------------|
51 | | abc             | asn1         | asp           | ats            | awk           |
52 | | actionscript    | ada          | agda          | alertindent    | apache        |
53 | | bash            | bibtex       | boo           | c              | cs            |
54 | | cpp             | cmake        | css           | changelog      | clojure       |
55 | | coffee          | coldfusion   | commonlisp    | curry          | d             |
56 | | dtd             | default      | diff          | djangotemplate | dockerfile    |
57 | | doxygen         | doxygenlua   | eiffel        | elixir         | email         |
58 | | erlang          | fsharp       | fortran       | gcc            | glsl          |
59 | | gnuassembler    | m4           | go            | html           | hamlet        |
60 | | haskell         | haxe         | ini           | isocpp         | idris         |
61 | | fasm            | nasm         | j             | json           | jsp           |
62 | | java            | javascript   | javadoc       | julia          | kotlin        |
63 | | llvm            | latex        | lex           | lilypond       | literatecurry |
64 | | literatehaskell | lua          | mips          | makefile       | markdown      |
65 | | mathematica     | matlab       | maxima        | mediawiki      | metafont      |
66 | | modelines       | modula2      | modula3       | monobasic      | ocaml         |
67 | | objectivec      | objectivecpp | octave        | opencl         | php           |
68 | | povray          | pascal       | perl          | pike           | postscript    |
69 | | powershell      | prolog       | protobuf      | pure           | purebasic     |
70 | | python          | r            | relaxng       | relaxngcompact | roff          |
71 | | ruby            | rhtml        | rust          | sgml           | sml           |
72 | | sql             | sqlmysql     | sqlpostgresql | scala          | scheme        |
73 | | tcl             | tcsh         | texinfo       | mandoc         | typescript    |
74 | | vhdl            | verilog      | xml           | xul            | yaml          |
75 | | yacc            | zsh          | dot           | noweb          | rest          |
76 | | sci             | sed          | xorg          | xslt           |               |
77 | 
78 | 
79 | 
80 | 
83 | 
84 | [highlighting-kate]: https://github.com/jgm/highlighting-kate "Visit repository"
85 | [Skylighting]: https://github.com/jgm/skylighting "Visit Skylighting repository on GitHub"
86 | 
87 | 
88 | 
89 | [version 1.19.2]: https://github.com/jgm/pandoc/releases/tag/1.19.2 "View pandoc 1.19.2 release notes"
90 | [v2.7.2]: https://github.com/jgm/pandoc/releases/tag/2.7.2 "View pandoc 2.7.2 release notes"
91 | 
92 | 
93 | 
94 | [built-in syntax highlighter]: #about-skilighting "jump to section"
95 | [see full list]: #supported-syntaxes "jump to section"
96 | 
97 | 
98 | 


--------------------------------------------------------------------------------
/skylighting/Tokens-CSS.md:
--------------------------------------------------------------------------------
  1 | # Skylighting CSS Classes
  2 | 
  3 | This document contains lookup tables for the equivalence of [skylighting] token types names to CSS classes, and viceversa.
  4 | 
  5 | 
  6 | -----
  7 | 
  8 | **Table of Contents**
  9 | 
 10 | 
 11 | 
 12 | - [Introduction](#introduction)
 13 |     - [Token-Types to CSS-Classes](#token-types-to-css-classes)
 14 |     - [CSS-Classes to Token-Types](#css-classes-to-token-types)
 15 | 
 16 | 
 17 | 
 18 | -----
 19 | 
 20 | # Introduction
 21 | 
 22 | The tables below are useful if you're working on Sass/CSS themes for customizing the look and feel of pandoc syntax highlighting. For a full explanation of the role of each token, see:
 23 | 
 24 | - [`Tokens-Guide.md`](./Tokens-Guide.md)
 25 | 
 26 | The list of skylighting supported token types can be found in the "`Types.hs`" source file:
 27 | 
 28 | - https://github.com/jgm/skylighting/blob/master/skylighting-core/src/Skylighting/Types.hs#L186
 29 | 
 30 | Their HTML class-names equivalents can be found in the "`HTML.hs`" source file:
 31 | 
 32 | - https://github.com/jgm/skylighting/blob/master/skylighting-core/src/Skylighting/Format/HTML.hs#L16
 33 | 
 34 | ## Token-Types to CSS-Classes
 35 | 
 36 | Here is a reference table listing all the token types by name, as they appear in Skylighting `.theme` files (JSON) and their corresponding CSS classes names:
 37 | 
 38 | |     TOKEN      | CLASS |
 39 | |----------------|-------|
 40 | | Normal         | ---   |
 41 | | Alert          | `.al` |
 42 | | Annotation     | `.an` |
 43 | | Attribute      | `.at` |
 44 | | BaseN          | `.bn` |
 45 | | BuiltIn        | `.bu` |
 46 | | Char           | `.ch` |
 47 | | Comment        | `.co` |
 48 | | CommentVar     | `.cv` |
 49 | | Constant       | `.cn` |
 50 | | ControlFlow    | `.cf` |
 51 | | DataType       | `.dt` |
 52 | | DecVal         | `.dv` |
 53 | | Documentation  | `.do` |
 54 | | Error          | `.er` |
 55 | | Extension      | `.ex` |
 56 | | Float          | `.fl` |
 57 | | Function       | `.fu` |
 58 | | Import         | `.im` |
 59 | | Information    | `.in` |
 60 | | Keyword        | `.kw` |
 61 | | Operator       | `.op` |
 62 | | Other          | `.ot` |
 63 | | Preprocessor   | `.pp` |
 64 | | RegionMarker   | `.re` |
 65 | | SpecialChar    | `.sc` |
 66 | | SpecialString  | `.ss` |
 67 | | String         | `.st` |
 68 | | Variable       | `.va` |
 69 | | VerbatimString | `.vs` |
 70 | | Warning        | `.wa` |
 71 | 
 72 | ## CSS-Classes to Token-Types
 73 | 
 74 | Here is the same table as above, but ordered by CSS classes instead.
 75 | 
 76 | | CLASS |     TOKEN      |
 77 | |-------|----------------|
 78 | | ---   | Normal         |
 79 | | `.al` | Alert          |
 80 | | `.an` | Annotation     |
 81 | | `.at` | Attribute      |
 82 | | `.bn` | BaseN          |
 83 | | `.bu` | BuiltIn        |
 84 | | `.cf` | ControlFlow    |
 85 | | `.ch` | Char           |
 86 | | `.cn` | Constant       |
 87 | | `.co` | Comment        |
 88 | | `.cv` | CommentVar     |
 89 | | `.do` | Documentation  |
 90 | | `.dt` | DataType       |
 91 | | `.dv` | DecVal         |
 92 | | `.er` | Error          |
 93 | | `.ex` | Extension      |
 94 | | `.fl` | Float          |
 95 | | `.fu` | Function       |
 96 | | `.im` | Import         |
 97 | | `.in` | Information    |
 98 | | `.kw` | Keyword        |
 99 | | `.op` | Operator       |
100 | | `.ot` | Other          |
101 | | `.pp` | Preprocessor   |
102 | | `.re` | RegionMarker   |
103 | | `.sc` | SpecialChar    |
104 | | `.ss` | SpecialString  |
105 | | `.st` | String         |
106 | | `.va` | Variable       |
107 | | `.vs` | VerbatimString |
108 | | `.wa` | Warning        |
109 | 
110 | 
111 | 
114 | 
115 | [Skylighting]: https://github.com/jgm/skylighting "Visit Skylighting repository on GitHub"
116 | 
117 | 


--------------------------------------------------------------------------------
/skylighting/css/README.md:
--------------------------------------------------------------------------------
 1 | # Skylighting CSS
 2 | 
 3 |     pandoc v2.7.2 | v1.19.2
 4 | 
 5 | A collection of CSS/SCSS resources for styling code blocks syntax-highlighted by pandoc (HTML documents).
 6 | 
 7 | 
 8 | -----
 9 | 
10 | **Table of Contents**
11 | 
12 | 
13 | 
14 | 
15 | - [Resources List](#resources-list)
16 | - [Breaking Changes](#breaking-changes)
17 |     - [Pandoc v2.0.4](#pandoc-v204)
18 | 
19 | 
20 | 
21 | -----
22 | 
23 | 
24 | # Resources List
25 | 
26 |   - [`/built-in-styles/`](./built-in-styles/) — Standalone CSS files of pandoc's eight built-in highlighting styles.
27 |   - [`/sass-templates/`](./sass-templates/) — Sass templates for creating custom highlighting themes.
28 | 
29 | 
30 | # Breaking Changes
31 | 
32 | Beware of some important changes in pandoc v2.x relases regarding the way code is syntax highlighted. Some of these changes will require modification of custom CSS sytlesheets created for previous versions.
33 | 
34 | ## Pandoc v2.0.4 
35 | 
36 | [Pandoc 2.0.4] introduced some changes in the html tags used for highlighting source code.
37 | 
38 | Source lines now use `` tag instead of `
`: 39 | 40 | pandoc 2.0–2.0.3: 41 | 42 | ``` html 43 |
44 | ``` 45 | pandoc >=2.0.4: 46 | 47 | ``` html 48 | 49 | ``` 50 | 51 | 52 | 53 | 56 | 57 | [highlighting-kate]: https://github.com/jgm/highlighting-kate "Visit repository" 58 | [skylighting]: https://github.com/jgm/skylighting "Visit repository" 59 | 60 | 61 | 62 | [version 1.19.2]: https://github.com/jgm/pandoc/releases/tag/1.19.2 "View pandoc 1.19.2 release notes" 63 | [Pandoc 2.0.4]: https://github.com/jgm/pandoc/releases/tag/2.0.4 "View pandoc 2.0.4 release notes" 64 | [v2.7.2]: https://github.com/jgm/pandoc/releases/tag/2.7.2 "View pandoc 2.7.2 release notes" 65 | 66 | 67 | 68 | [built-in syntax highlighter]: #pandocs-syntax-highlighting-engine "jump to section" 69 | [full list]: #pandoc-highlighting-supported-languages "jump to section" 70 | 71 | 72 | -------------------------------------------------------------------------------- /skylighting/css/built-in-styles/README.md: -------------------------------------------------------------------------------- 1 | # Pandoc Built-in Styles 2 | 3 | pandoc v2.7.2 | v1.19.2 4 | 5 | In this folder you'll find the standalone CSS stylesheets of pandoc eight built-in styles (syntax highlighting themes): 6 | 7 | 1. [`breezedark.css`](./breezedark.css) 8 | 2. [`espresso.css`](./espresso.css) 9 | 3. [`haddock.css`](./haddock.css) 10 | 4. [`kate.css`](./kate.css) 11 | 5. [`monochrome.css`](./monochrome.css) 12 | 6. [`pygments.css`](./pygments.css) (default style) 13 | 7. [`tango.css`](./tango.css) 14 | 8. [`zenburn.css`](./zenburn.css) 15 | 16 | The stylesheets were extracted from standalone HTML5 documents created with pandoc `v2.7.2`, using the `--highlight-style` option. A comment block with extra info was added at the beginning of each stylesheet. 17 | 18 | They are intended as a examples and quick reference when developing custom styles (see [License section] below). 19 | 20 | 21 | > __NOTE__ — pandoc v2.0.4 introduced some breaking changes in the way code is highlighted in html output. (For more info, see [README in parent folder]) 22 | 23 | 24 | ## Pandoc v1 Styles 25 | 26 | - [`/pandoc_v1/`](./pandoc_v1/) 27 | 28 | In the "[`/pandoc_v1/`](./pandoc_v1/)" folder you'll find the equivalent files for pandoc v1 — version 2 introduced some changes in syntax highlighting HTML tags and built-in CSS styles, so the old files are kept for projects that still require pandoc `v1.x`. 29 | 30 | From [pandoc v2.0 release notes]: 31 | 32 | > The way highlighted code blocks are formatted in HTML has been changed (David Baynard), in ways that may require changes in hard-coded CSS affecting highlighting. (If you haven't included hard-coded highlighting CSS in your template, you needn't change anything.) 33 | 34 | Most notably, line-numbered code dosen't use HTML tables anymore. 35 | 36 | # About The Styles 37 | 38 | ## Color Themes Inspiration 39 | 40 | Some info about the original themes these pandoc styles are based on (info taken from [skylighting source code] and further research). 41 | 42 | - **breezedark** — Style from the "Breeze Dark" KDE syntax highlighting theme. 43 | - **espresso** — Style based on [ultraviolet] → "[espresso_libre.css]" (dark background) 44 | - **haddock** — Style based on [Haddock]'s source highlighting. 45 | - **kate** — Style based on Kate's default colors. 46 | - **monochrome** — Style with no colors. 47 | - **pygments** — Style based on [Pygments] → [default colors]. 48 | - **tango** — Style based on [Pygments] → "[tango]" colors. 49 | - **zenburn** — Style based on the popular "[Zenburn]" Vim color scheme. 50 | 51 | 52 | ## License 53 | 54 | - [LICENSE](./LICENSE) — Pandoc license file. 55 | - [GPL-2.0](./GPL-2.0) — GNU-GPL v2 license file. 56 | 57 | Pandoc built-in styles are dynamically generated by the skylighting library — ie: the actual CSS stylesheets are not present in pandoc nor skylighting source code, but are generated programmatically from a set a hardcoded values. The code that generates them can be seen here: 58 | 59 | - https://github.com/jgm/skylighting/blob/master/skylighting-core/src/Skylighting/Styles.hs 60 | 61 | The CSS stylesheets of the syntax styles (aka "themes") fall under the same license governing pandoc: **GPL v2** (or greater). 62 | 63 | Pandoc built-in default templates are maintained on a repository of their own, and they are dual-licensed — under both the **GPL** (**v2** or higher, same as pandoc) and the **BSD 3-clause** ("New" or "Revised") license: 64 | 65 | - https://github.com/jgm/pandoc-templates 66 | 67 | Even though pandoc templates are dual licensed, the actual CSS styles are not part of the HTML4/HTML5 templates, they are dynamically generated by pandoc and injected into the template when the following is encounterd: 68 | 69 | $if(highlighting-css)$ 70 | 73 | $endif$ 74 | 75 | It's therefore safer to assume that the introduction of the built-in CSS stylesheets in a template or a final document excludes the **BSD 3-clause** license option, leaving as the only viable choice the **GPL v2** (or greater) license which is common to both templates and stylesheets. 76 | 77 | 78 | 81 | 82 | [README in parent folder]: ../README.md#breaking-changes "Go to parent folder's README file" 83 | 84 | [pandoc v2.0 release notes]: https://github.com/jgm/pandoc/releases/tag/2.0 "View pandoc 2.0 release notes" 85 | 86 | [skylighting source code]: https://github.com/jgm/skylighting/blob/master/skylighting-core/src/Skylighting/Styles.hs 87 | 88 | 89 | 90 | [default colors]: https://bitbucket.org/birkenfeld/pygments-main/src/default/pygments/styles/default.py 91 | [espresso_libre.css]: https://github.com/spox/ultraviolet/blob/master/render/xhtml/files/css/espresso_libre.css 92 | [Haddock]: https://www.haskell.org/haddock/ 93 | [Pygments]: http://pygments.org/ 94 | [tango]: https://bitbucket.org/birkenfeld/pygments-main/src/default/pygments/styles/tango.py 95 | [ultraviolet]: https://rubygems.org/gems/ultraviolet/versions/0.10.0 96 | [Zenburn]: http://kippura.org/zenburnpage/ 97 | 98 | 99 | 100 | [License section]: #license "jump to section" 101 | 102 | 103 | -------------------------------------------------------------------------------- /skylighting/css/built-in-styles/breezedark.css: -------------------------------------------------------------------------------- 1 | /* ============================================================================== 2 | Breezedark (pandoc built-in style) 3 | ============================================================================== 4 | Style from the "Breeze Dark" KDE syntax highlighting theme. 5 | 6 | This stylesheet was produced using Pandoc v2.7.2. 7 | 8 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu). 9 | Released under the GPL, version 2 or greater. 10 | ------------------------------------------------------------------------------ 11 | */ 12 | a.sourceLine { display: inline-block; line-height: 1.25; } 13 | a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; } 14 | a.sourceLine:empty { height: 1.2em; } 15 | .sourceCode { overflow: visible; } 16 | code.sourceCode { white-space: pre; position: relative; } 17 | div.sourceCode { margin: 1em 0; } 18 | pre.sourceCode { margin: 0; } 19 | @media screen { 20 | div.sourceCode { overflow: auto; } 21 | } 22 | @media print { 23 | code.sourceCode { white-space: pre-wrap; } 24 | a.sourceLine { text-indent: -1em; padding-left: 1em; } 25 | } 26 | pre.numberSource a.sourceLine 27 | { position: relative; left: -4em; } 28 | pre.numberSource a.sourceLine::before 29 | { content: attr(title); 30 | position: relative; left: -1em; text-align: right; vertical-align: baseline; 31 | border: none; pointer-events: all; display: inline-block; 32 | -webkit-touch-callout: none; -webkit-user-select: none; 33 | -khtml-user-select: none; -moz-user-select: none; 34 | -ms-user-select: none; user-select: none; 35 | padding: 0 4px; width: 4em; 36 | background-color: #232629; 37 | color: #7a7c7d; 38 | } 39 | pre.numberSource { margin-left: 3em; border-left: 1px solid #7a7c7d; padding-left: 4px; } 40 | div.sourceCode 41 | { color: #cfcfc2; background-color: #232629; } 42 | @media screen { 43 | a.sourceLine::before { text-decoration: underline; } 44 | } 45 | code span. { color: #cfcfc2; } /* Normal */ 46 | code span.al { color: #95da4c; } /* Alert */ 47 | code span.an { color: #3f8058; } /* Annotation */ 48 | code span.at { color: #2980b9; } /* Attribute */ 49 | code span.bn { color: #f67400; } /* BaseN */ 50 | code span.bu { color: #7f8c8d; } /* BuiltIn */ 51 | code span.cf { color: #fdbc4b; } /* ControlFlow */ 52 | code span.ch { color: #3daee9; } /* Char */ 53 | code span.cn { color: #27aeae; } /* Constant */ 54 | code span.co { color: #7a7c7d; } /* Comment */ 55 | code span.cv { color: #7f8c8d; } /* CommentVar */ 56 | code span.do { color: #a43340; } /* Documentation */ 57 | code span.dt { color: #2980b9; } /* DataType */ 58 | code span.dv { color: #f67400; } /* DecVal */ 59 | code span.er { color: #da4453; } /* Error */ 60 | code span.ex { color: #0099ff; } /* Extension */ 61 | code span.fl { color: #f67400; } /* Float */ 62 | code span.fu { color: #8e44ad; } /* Function */ 63 | code span.im { color: #27ae60; } /* Import */ 64 | code span.in { color: #c45b00; } /* Information */ 65 | code span.kw { color: #cfcfc2; } /* Keyword */ 66 | code span.op { color: #cfcfc2; } /* Operator */ 67 | code span.ot { color: #27ae60; } /* Other */ 68 | code span.pp { color: #27ae60; } /* Preprocessor */ 69 | code span.re { color: #2980b9; } /* RegionMarker */ 70 | code span.sc { color: #3daee9; } /* SpecialChar */ 71 | code span.ss { color: #da4453; } /* SpecialString */ 72 | code span.st { color: #f44f4f; } /* String */ 73 | code span.va { color: #27aeae; } /* Variable */ 74 | code span.vs { color: #da4453; } /* VerbatimString */ 75 | code span.wa { color: #da4453; } /* Warning */ 76 | -------------------------------------------------------------------------------- /skylighting/css/built-in-styles/espresso.css: -------------------------------------------------------------------------------- 1 | /* ============================================================================== 2 | Espresso (pandoc built-in style) 3 | ============================================================================== 4 | Style based on ultraviolet's "espresso_libre.css" (dark background): 5 | 6 | https://github.com/spox/ultraviolet/ 7 | 8 | This stylesheet was produced using Pandoc v2.7.2. 9 | 10 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu). 11 | Released under the GPL, version 2 or greater. 12 | ------------------------------------------------------------------------------ 13 | */ 14 | a.sourceLine { display: inline-block; line-height: 1.25; } 15 | a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; } 16 | a.sourceLine:empty { height: 1.2em; } 17 | .sourceCode { overflow: visible; } 18 | code.sourceCode { white-space: pre; position: relative; } 19 | div.sourceCode { margin: 1em 0; } 20 | pre.sourceCode { margin: 0; } 21 | @media screen { 22 | div.sourceCode { overflow: auto; } 23 | } 24 | @media print { 25 | code.sourceCode { white-space: pre-wrap; } 26 | a.sourceLine { text-indent: -1em; padding-left: 1em; } 27 | } 28 | pre.numberSource a.sourceLine 29 | { position: relative; left: -4em; } 30 | pre.numberSource a.sourceLine::before 31 | { content: attr(title); 32 | position: relative; left: -1em; text-align: right; vertical-align: baseline; 33 | border: none; pointer-events: all; display: inline-block; 34 | -webkit-touch-callout: none; -webkit-user-select: none; 35 | -khtml-user-select: none; -moz-user-select: none; 36 | -ms-user-select: none; user-select: none; 37 | padding: 0 4px; width: 4em; 38 | background-color: #2a211c; 39 | color: #bdae9d; 40 | } 41 | pre.numberSource { margin-left: 3em; border-left: 1px solid #bdae9d; padding-left: 4px; } 42 | div.sourceCode 43 | { color: #bdae9d; background-color: #2a211c; } 44 | @media screen { 45 | a.sourceLine::before { text-decoration: underline; } 46 | } 47 | code span.al { color: #ffff00; } /* Alert */ 48 | code span.an { color: #0066ff; font-weight: bold; font-style: italic; } /* Annotation */ 49 | code span.at { } /* Attribute */ 50 | code span.bn { color: #44aa43; } /* BaseN */ 51 | code span.bu { } /* BuiltIn */ 52 | code span.cf { color: #43a8ed; font-weight: bold; } /* ControlFlow */ 53 | code span.ch { color: #049b0a; } /* Char */ 54 | code span.cn { } /* Constant */ 55 | code span.co { color: #0066ff; font-weight: bold; font-style: italic; } /* Comment */ 56 | code span.do { color: #0066ff; font-style: italic; } /* Documentation */ 57 | code span.dt { text-decoration: underline; } /* DataType */ 58 | code span.dv { color: #44aa43; } /* DecVal */ 59 | code span.er { color: #ffff00; font-weight: bold; } /* Error */ 60 | code span.ex { } /* Extension */ 61 | code span.fl { color: #44aa43; } /* Float */ 62 | code span.fu { color: #ff9358; font-weight: bold; } /* Function */ 63 | code span.im { } /* Import */ 64 | code span.in { color: #0066ff; font-weight: bold; font-style: italic; } /* Information */ 65 | code span.kw { color: #43a8ed; font-weight: bold; } /* Keyword */ 66 | code span.op { } /* Operator */ 67 | code span.pp { font-weight: bold; } /* Preprocessor */ 68 | code span.sc { color: #049b0a; } /* SpecialChar */ 69 | code span.ss { color: #049b0a; } /* SpecialString */ 70 | code span.st { color: #049b0a; } /* String */ 71 | code span.va { } /* Variable */ 72 | code span.vs { color: #049b0a; } /* VerbatimString */ 73 | code span.wa { color: #ffff00; font-weight: bold; } /* Warning */ 74 | -------------------------------------------------------------------------------- /skylighting/css/built-in-styles/haddock.css: -------------------------------------------------------------------------------- 1 | /* ============================================================================== 2 | Haddock (pandoc built-in style) 3 | ============================================================================== 4 | Style based on Haddock's source highlighting: 5 | 6 | https://www.haskell.org/haddock/ 7 | 8 | This stylesheet was produced using Pandoc v2.7.2. 9 | 10 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu). 11 | Released under the GPL, version 2 or greater. 12 | ------------------------------------------------------------------------------ 13 | */ 14 | a.sourceLine { display: inline-block; line-height: 1.25; } 15 | a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; } 16 | a.sourceLine:empty { height: 1.2em; } 17 | .sourceCode { overflow: visible; } 18 | code.sourceCode { white-space: pre; position: relative; } 19 | div.sourceCode { margin: 1em 0; } 20 | pre.sourceCode { margin: 0; } 21 | @media screen { 22 | div.sourceCode { overflow: auto; } 23 | } 24 | @media print { 25 | code.sourceCode { white-space: pre-wrap; } 26 | a.sourceLine { text-indent: -1em; padding-left: 1em; } 27 | } 28 | pre.numberSource a.sourceLine 29 | { position: relative; left: -4em; } 30 | pre.numberSource a.sourceLine::before 31 | { content: attr(title); 32 | position: relative; left: -1em; text-align: right; vertical-align: baseline; 33 | border: none; pointer-events: all; display: inline-block; 34 | -webkit-touch-callout: none; -webkit-user-select: none; 35 | -khtml-user-select: none; -moz-user-select: none; 36 | -ms-user-select: none; user-select: none; 37 | padding: 0 4px; width: 4em; 38 | color: #aaaaaa; 39 | } 40 | pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; } 41 | div.sourceCode 42 | { } 43 | @media screen { 44 | a.sourceLine::before { text-decoration: underline; } 45 | } 46 | code span.al { color: #ff0000; } /* Alert */ 47 | code span.an { color: #008000; } /* Annotation */ 48 | code span.at { } /* Attribute */ 49 | code span.bu { } /* BuiltIn */ 50 | code span.cf { color: #0000ff; } /* ControlFlow */ 51 | code span.ch { color: #008080; } /* Char */ 52 | code span.cn { } /* Constant */ 53 | code span.co { color: #008000; } /* Comment */ 54 | code span.cv { color: #008000; } /* CommentVar */ 55 | code span.do { color: #008000; } /* Documentation */ 56 | code span.er { color: #ff0000; font-weight: bold; } /* Error */ 57 | code span.ex { } /* Extension */ 58 | code span.im { } /* Import */ 59 | code span.in { color: #008000; } /* Information */ 60 | code span.kw { color: #0000ff; } /* Keyword */ 61 | code span.op { } /* Operator */ 62 | code span.ot { color: #ff4000; } /* Other */ 63 | code span.pp { color: #ff4000; } /* Preprocessor */ 64 | code span.sc { color: #008080; } /* SpecialChar */ 65 | code span.ss { color: #008080; } /* SpecialString */ 66 | code span.st { color: #008080; } /* String */ 67 | code span.va { } /* Variable */ 68 | code span.vs { color: #008080; } /* VerbatimString */ 69 | code span.wa { color: #008000; font-weight: bold; } /* Warning */ 70 | -------------------------------------------------------------------------------- /skylighting/css/built-in-styles/kate.css: -------------------------------------------------------------------------------- 1 | /* ============================================================================== 2 | Kate (pandoc built-in style) 3 | ============================================================================== 4 | Style based on Kate's default colors. 5 | 6 | This stylesheet was produced using Pandoc v2.7.2. 7 | 8 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu). 9 | Released under the GPL, version 2 or greater. 10 | ------------------------------------------------------------------------------ 11 | */ 12 | a.sourceLine { display: inline-block; line-height: 1.25; } 13 | a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; } 14 | a.sourceLine:empty { height: 1.2em; } 15 | .sourceCode { overflow: visible; } 16 | code.sourceCode { white-space: pre; position: relative; } 17 | div.sourceCode { margin: 1em 0; } 18 | pre.sourceCode { margin: 0; } 19 | @media screen { 20 | div.sourceCode { overflow: auto; } 21 | } 22 | @media print { 23 | code.sourceCode { white-space: pre-wrap; } 24 | a.sourceLine { text-indent: -1em; padding-left: 1em; } 25 | } 26 | pre.numberSource a.sourceLine 27 | { position: relative; left: -4em; } 28 | pre.numberSource a.sourceLine::before 29 | { content: attr(title); 30 | position: relative; left: -1em; text-align: right; vertical-align: baseline; 31 | border: none; pointer-events: all; display: inline-block; 32 | -webkit-touch-callout: none; -webkit-user-select: none; 33 | -khtml-user-select: none; -moz-user-select: none; 34 | -ms-user-select: none; user-select: none; 35 | padding: 0 4px; width: 4em; 36 | background-color: #ffffff; 37 | color: #a0a0a0; 38 | } 39 | pre.numberSource { margin-left: 3em; border-left: 1px solid #a0a0a0; padding-left: 4px; } 40 | div.sourceCode 41 | { color: #1f1c1b; background-color: #ffffff; } 42 | @media screen { 43 | a.sourceLine::before { text-decoration: underline; } 44 | } 45 | code span. { color: #1f1c1b; } /* Normal */ 46 | code span.al { color: #bf0303; background-color: #f7e6e6; font-weight: bold; } /* Alert */ 47 | code span.an { color: #ca60ca; } /* Annotation */ 48 | code span.at { color: #0057ae; } /* Attribute */ 49 | code span.bn { color: #b08000; } /* BaseN */ 50 | code span.bu { color: #644a9b; font-weight: bold; } /* BuiltIn */ 51 | code span.cf { color: #1f1c1b; font-weight: bold; } /* ControlFlow */ 52 | code span.ch { color: #924c9d; } /* Char */ 53 | code span.cn { color: #aa5500; } /* Constant */ 54 | code span.co { color: #898887; } /* Comment */ 55 | code span.cv { color: #0095ff; } /* CommentVar */ 56 | code span.do { color: #607880; } /* Documentation */ 57 | code span.dt { color: #0057ae; } /* DataType */ 58 | code span.dv { color: #b08000; } /* DecVal */ 59 | code span.er { color: #bf0303; text-decoration: underline; } /* Error */ 60 | code span.ex { color: #0095ff; font-weight: bold; } /* Extension */ 61 | code span.fl { color: #b08000; } /* Float */ 62 | code span.fu { color: #644a9b; } /* Function */ 63 | code span.im { color: #ff5500; } /* Import */ 64 | code span.in { color: #b08000; } /* Information */ 65 | code span.kw { color: #1f1c1b; font-weight: bold; } /* Keyword */ 66 | code span.op { color: #1f1c1b; } /* Operator */ 67 | code span.ot { color: #006e28; } /* Other */ 68 | code span.pp { color: #006e28; } /* Preprocessor */ 69 | code span.re { color: #0057ae; background-color: #e0e9f8; } /* RegionMarker */ 70 | code span.sc { color: #3daee9; } /* SpecialChar */ 71 | code span.ss { color: #ff5500; } /* SpecialString */ 72 | code span.st { color: #bf0303; } /* String */ 73 | code span.va { color: #0057ae; } /* Variable */ 74 | code span.vs { color: #bf0303; } /* VerbatimString */ 75 | code span.wa { color: #bf0303; } /* Warning */ 76 | -------------------------------------------------------------------------------- /skylighting/css/built-in-styles/monochrome.css: -------------------------------------------------------------------------------- 1 | /* ============================================================================== 2 | Monochrome (pandoc built-in style) 3 | ============================================================================== 4 | Style with no colors. 5 | 6 | This stylesheet was produced using Pandoc v2.7.2. 7 | 8 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu). 9 | Released under the GPL, version 2 or greater. 10 | ------------------------------------------------------------------------------ 11 | */ 12 | a.sourceLine { display: inline-block; line-height: 1.25; } 13 | a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; } 14 | a.sourceLine:empty { height: 1.2em; } 15 | .sourceCode { overflow: visible; } 16 | code.sourceCode { white-space: pre; position: relative; } 17 | div.sourceCode { margin: 1em 0; } 18 | pre.sourceCode { margin: 0; } 19 | @media screen { 20 | div.sourceCode { overflow: auto; } 21 | } 22 | @media print { 23 | code.sourceCode { white-space: pre-wrap; } 24 | a.sourceLine { text-indent: -1em; padding-left: 1em; } 25 | } 26 | pre.numberSource a.sourceLine 27 | { position: relative; left: -4em; } 28 | pre.numberSource a.sourceLine::before 29 | { content: attr(title); 30 | position: relative; left: -1em; text-align: right; vertical-align: baseline; 31 | border: none; pointer-events: all; display: inline-block; 32 | -webkit-touch-callout: none; -webkit-user-select: none; 33 | -khtml-user-select: none; -moz-user-select: none; 34 | -ms-user-select: none; user-select: none; 35 | padding: 0 4px; width: 4em; 36 | } 37 | pre.numberSource { margin-left: 3em; padding-left: 4px; } 38 | div.sourceCode 39 | { } 40 | @media screen { 41 | a.sourceLine::before { text-decoration: underline; } 42 | } 43 | code span.al { font-weight: bold; } /* Alert */ 44 | code span.an { font-style: italic; } /* Annotation */ 45 | code span.cf { font-weight: bold; } /* ControlFlow */ 46 | code span.co { font-style: italic; } /* Comment */ 47 | code span.cv { font-style: italic; } /* CommentVar */ 48 | code span.do { font-style: italic; } /* Documentation */ 49 | code span.dt { text-decoration: underline; } /* DataType */ 50 | code span.er { font-weight: bold; } /* Error */ 51 | code span.in { font-style: italic; } /* Information */ 52 | code span.kw { font-weight: bold; } /* Keyword */ 53 | code span.pp { font-weight: bold; } /* Preprocessor */ 54 | code span.wa { font-style: italic; } /* Warning */ 55 | -------------------------------------------------------------------------------- /skylighting/css/built-in-styles/pandoc_v1/README.md: -------------------------------------------------------------------------------- 1 | # Pandoc v1 Built-in Styles 2 | 3 | This folder contains the standalone CSS stylesheets of the eight built-in styles (syntax highlighting themes) of pandoc v1: 4 | 5 | 1. [`breezedark.css`](./breezedark.css) 6 | 2. [`espresso.css`](./espresso.css) 7 | 3. [`haddock.css`](./haddock.css) 8 | 4. [`kate.css`](./kate.css) 9 | 5. [`monochrome.css`](./monochrome.css) 10 | 6. [`pygments.css`](./pygments.css) (default style) 11 | 7. [`tango.css`](./tango.css) 12 | 8. [`zenburn.css`](./zenburn.css) 13 | 14 | Since pandoc v2 introduced some changes in the CSS themes for syntax higlighting, these old stylesheets are kept for projects that need pandoc v1. 15 | 16 | The stylesheets were extracted from standalone HTML5 documents created with pandoc (`v1.19.2`), using the `--highlight-style` option. A comment block with extra info was added at the beginning of each stylesheet. 17 | 18 | Pandoc v1 ended its life-cycle with [`v1.19.4`](https://github.com/jgm/pandoc/releases/tag/1.19.2.4) (Sep 10, 2017). Therefore, these stylesheet from `v1.19.2` (Sep 8, 2017) represent the most updated version of the pandoc v1 themes. 19 | 20 | ## License 21 | 22 | - [LICENSE](./LICENSE) — Pandoc license file. 23 | - [GPL-2.0](./GPL-2.0) — GNU-GPL v2 license file. 24 | 25 | 26 | -------------------------------------------------------------------------------- /skylighting/css/built-in-styles/pandoc_v1/breezedark.css: -------------------------------------------------------------------------------- 1 | /* ============================================================================== 2 | Breezedark (pandoc built-in style) 3 | ============================================================================== 4 | Style from the "Breeze Dark" KDE syntax highlighting theme. 5 | 6 | This stylesheet was produced using Pandoc v1.19.2. 7 | 8 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu). 9 | Released under the GPL, version 2 or greater. 10 | ------------------------------------------------------------------------------ 11 | */ 12 | div.sourceCode { overflow-x: auto; } 13 | table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode { 14 | margin: 0; padding: 0; vertical-align: baseline; border: none; } 15 | table.sourceCode { width: 100%; line-height: 100%; background-color: #232629; color: #cfcfc2; } 16 | td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; background-color: #232629; color: #7a7c7d; border-right: 1px solid #7a7c7d; } 17 | td.sourceCode { padding-left: 5px; } 18 | pre, code { color: #cfcfc2; background-color: #232629; } 19 | code > span.kw { color: #cfcfc2; } /* Keyword */ 20 | code > span.dt { color: #2980b9; } /* DataType */ 21 | code > span.dv { color: #f67400; } /* DecVal */ 22 | code > span.bn { color: #f67400; } /* BaseN */ 23 | code > span.fl { color: #f67400; } /* Float */ 24 | code > span.cn { color: #27aeae; } /* Constant */ 25 | code > span.ch { color: #3daee9; } /* Char */ 26 | code > span.sc { color: #3daee9; } /* SpecialChar */ 27 | code > span.st { color: #f44f4f; } /* String */ 28 | code > span.vs { color: #da4453; } /* VerbatimString */ 29 | code > span.ss { color: #da4453; } /* SpecialString */ 30 | code > span.im { color: #27ae60; } /* Import */ 31 | code > span.co { color: #7a7c7d; } /* Comment */ 32 | code > span.do { color: #a43340; } /* Documentation */ 33 | code > span.an { color: #3f8058; } /* Annotation */ 34 | code > span.cv { color: #7f8c8d; } /* CommentVar */ 35 | code > span.ot { color: #27ae60; } /* Other */ 36 | code > span.fu { color: #8e44ad; } /* Function */ 37 | code > span.va { color: #27aeae; } /* Variable */ 38 | code > span.cf { color: #fdbc4b; } /* ControlFlow */ 39 | code > span.op { color: #cfcfc2; } /* Operator */ 40 | code > span.bu { color: #7f8c8d; } /* BuiltIn */ 41 | code > span.ex { color: #0099ff; } /* Extension */ 42 | code > span.pp { color: #27ae60; } /* Preprocessor */ 43 | code > span.at { color: #2980b9; } /* Attribute */ 44 | code > span.re { color: #2980b9; } /* RegionMarker */ 45 | code > span.in { color: #c45b00; } /* Information */ 46 | code > span.wa { color: #da4453; } /* Warning */ 47 | code > span.al { color: #95da4c; } /* Alert */ 48 | code > span.er { color: #da4453; } /* Error */ 49 | code > span. { color: #cfcfc2; } /* Normal */ -------------------------------------------------------------------------------- /skylighting/css/built-in-styles/pandoc_v1/espresso.css: -------------------------------------------------------------------------------- 1 | /* ============================================================================== 2 | Espresso (pandoc built-in style) 3 | ============================================================================== 4 | Style based on ultraviolet's "espresso_libre.css" (dark background): 5 | 6 | https://github.com/spox/ultraviolet/ 7 | 8 | This stylesheet was produced using Pandoc v1.19.2. 9 | 10 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu). 11 | Released under the GPL, version 2 or greater. 12 | ------------------------------------------------------------------------------ 13 | */ 14 | div.sourceCode { overflow-x: auto; } 15 | table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode { 16 | margin: 0; padding: 0; vertical-align: baseline; border: none; } 17 | table.sourceCode { width: 100%; line-height: 100%; background-color: #2a211c; color: #bdae9d; } 18 | td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; background-color: #2a211c; color: #bdae9d; border-right: 1px solid #bdae9d; } 19 | td.sourceCode { padding-left: 5px; } 20 | pre, code { color: #bdae9d; background-color: #2a211c; } 21 | code > span.kw { color: #43a8ed; font-weight: bold; } /* Keyword */ 22 | code > span.dt { text-decoration: underline; } /* DataType */ 23 | code > span.dv { color: #44aa43; } /* DecVal */ 24 | code > span.bn { color: #44aa43; } /* BaseN */ 25 | code > span.fl { color: #44aa43; } /* Float */ 26 | code > span.ch { color: #049b0a; } /* Char */ 27 | code > span.st { color: #049b0a; } /* String */ 28 | code > span.co { color: #0066ff; font-style: italic; } /* Comment */ 29 | code > span.al { color: #ffff00; } /* Alert */ 30 | code > span.fu { color: #ff9358; font-weight: bold; } /* Function */ 31 | code > span.er { color: #ffff00; font-weight: bold; } /* Error */ 32 | code > span.wa { color: #ffff00; font-weight: bold; } /* Warning */ 33 | code > span.cn { } /* Constant */ 34 | code > span.sc { color: #049b0a; } /* SpecialChar */ 35 | code > span.vs { color: #049b0a; } /* VerbatimString */ 36 | code > span.ss { color: #049b0a; } /* SpecialString */ 37 | code > span.im { } /* Import */ 38 | code > span.va { } /* Variable */ 39 | code > span.cf { color: #43a8ed; font-weight: bold; } /* ControlFlow */ 40 | code > span.op { } /* Operator */ 41 | code > span.bu { } /* BuiltIn */ 42 | code > span.ex { } /* Extension */ 43 | code > span.pp { font-weight: bold; } /* Preprocessor */ 44 | code > span.at { } /* Attribute */ 45 | code > span.do { color: #0066ff; font-style: italic; } /* Documentation */ 46 | code > span.an { color: #0066ff; font-weight: bold; font-style: italic; } /* Annotation */ 47 | code > span.co { color: #0066ff; font-weight: bold; font-style: italic; } /* Comment */ 48 | code > span.in { color: #0066ff; font-weight: bold; font-style: italic; } /* Information */ -------------------------------------------------------------------------------- /skylighting/css/built-in-styles/pandoc_v1/haddock.css: -------------------------------------------------------------------------------- 1 | /* ============================================================================== 2 | Haddock (pandoc built-in style) 3 | ============================================================================== 4 | Style based on Haddock's source highlighting: 5 | 6 | https://www.haskell.org/haddock/ 7 | 8 | This stylesheet was produced using Pandoc v1.19.2. 9 | 10 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu). 11 | Released under the GPL, version 2 or greater. 12 | ------------------------------------------------------------------------------ 13 | */ 14 | div.sourceCode { overflow-x: auto; } 15 | table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode { 16 | margin: 0; padding: 0; vertical-align: baseline; border: none; } 17 | table.sourceCode { width: 100%; line-height: 100%; } 18 | td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; } 19 | td.sourceCode { padding-left: 5px; } 20 | code > span.kw { color: #0000ff; } /* Keyword */ 21 | code > span.ch { color: #008080; } /* Char */ 22 | code > span.st { color: #008080; } /* String */ 23 | code > span.co { color: #008000; } /* Comment */ 24 | code > span.ot { color: #ff4000; } /* Other */ 25 | code > span.al { color: #ff0000; } /* Alert */ 26 | code > span.er { color: #ff0000; font-weight: bold; } /* Error */ 27 | code > span.wa { color: #008000; font-weight: bold; } /* Warning */ 28 | code > span.cn { } /* Constant */ 29 | code > span.sc { color: #008080; } /* SpecialChar */ 30 | code > span.vs { color: #008080; } /* VerbatimString */ 31 | code > span.ss { color: #008080; } /* SpecialString */ 32 | code > span.im { } /* Import */ 33 | code > span.va { } /* Variable */ 34 | code > span.cf { color: #0000ff; } /* ControlFlow */ 35 | code > span.op { } /* Operator */ 36 | code > span.bu { } /* BuiltIn */ 37 | code > span.ex { } /* Extension */ 38 | code > span.pp { color: #ff4000; } /* Preprocessor */ 39 | code > span.do { color: #008000; } /* Documentation */ 40 | code > span.an { color: #008000; } /* Annotation */ 41 | code > span.cv { color: #008000; } /* CommentVar */ 42 | code > span.at { } /* Attribute */ 43 | code > span.in { color: #008000; } /* Information */ -------------------------------------------------------------------------------- /skylighting/css/built-in-styles/pandoc_v1/kate.css: -------------------------------------------------------------------------------- 1 | /* ============================================================================== 2 | Kate (pandoc built-in style) 3 | ============================================================================== 4 | Style based on Kate's default colors. 5 | 6 | This stylesheet was produced using Pandoc v1.19.2. 7 | 8 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu). 9 | Released under the GPL, version 2 or greater. 10 | ------------------------------------------------------------------------------ 11 | */ 12 | div.sourceCode { overflow-x: auto; } 13 | table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode { 14 | margin: 0; padding: 0; vertical-align: baseline; border: none; } 15 | table.sourceCode { width: 100%; line-height: 100%; background-color: #ffffff; color: #1f1c1b; } 16 | td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; background-color: #ffffff; color: #a0a0a0; border-right: 1px solid #a0a0a0; } 17 | td.sourceCode { padding-left: 5px; } 18 | pre, code { color: #1f1c1b; background-color: #ffffff; } 19 | code > span.kw { color: #1f1c1b; font-weight: bold; } /* Keyword */ 20 | code > span.dt { color: #0057ae; } /* DataType */ 21 | code > span.dv { color: #b08000; } /* DecVal */ 22 | code > span.bn { color: #b08000; } /* BaseN */ 23 | code > span.fl { color: #b08000; } /* Float */ 24 | code > span.cn { color: #aa5500; } /* Constant */ 25 | code > span.ch { color: #924c9d; } /* Char */ 26 | code > span.sc { color: #3daee9; } /* SpecialChar */ 27 | code > span.st { color: #bf0303; } /* String */ 28 | code > span.vs { color: #bf0303; } /* VerbatimString */ 29 | code > span.ss { color: #ff5500; } /* SpecialString */ 30 | code > span.im { color: #ff5500; } /* Import */ 31 | code > span.co { color: #898887; } /* Comment */ 32 | code > span.do { color: #607880; } /* Documentation */ 33 | code > span.an { color: #ca60ca; } /* Annotation */ 34 | code > span.cv { color: #0095ff; } /* CommentVar */ 35 | code > span.ot { color: #006e28; } /* Other */ 36 | code > span.fu { color: #644a9b; } /* Function */ 37 | code > span.va { color: #0057ae; } /* Variable */ 38 | code > span.cf { color: #1f1c1b; font-weight: bold; } /* ControlFlow */ 39 | code > span.op { color: #1f1c1b; } /* Operator */ 40 | code > span.bu { color: #644a9b; font-weight: bold; } /* BuiltIn */ 41 | code > span.ex { color: #0095ff; font-weight: bold; } /* Extension */ 42 | code > span.pp { color: #006e28; } /* Preprocessor */ 43 | code > span.at { color: #0057ae; } /* Attribute */ 44 | code > span.re { color: #0057ae; } /* RegionMarker */ 45 | code > span.in { color: #b08000; } /* Information */ 46 | code > span.wa { color: #bf0303; } /* Warning */ 47 | code > span.al { color: #bf0303; font-weight: bold; } /* Alert */ 48 | code > span.er { color: #bf0303; text-decoration: underline; } /* Error */ 49 | code > span. { color: #1f1c1b; } /* Normal */ -------------------------------------------------------------------------------- /skylighting/css/built-in-styles/pandoc_v1/monochrome.css: -------------------------------------------------------------------------------- 1 | /* ============================================================================== 2 | Monochrome (pandoc built-in style) 3 | ============================================================================== 4 | Style with no colors. 5 | 6 | This stylesheet was produced using Pandoc v1.19.2. 7 | 8 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu). 9 | Released under the GPL, version 2 or greater. 10 | ------------------------------------------------------------------------------ 11 | */ 12 | div.sourceCode { overflow-x: auto; } 13 | table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode { 14 | margin: 0; padding: 0; vertical-align: baseline; border: none; } 15 | table.sourceCode { width: 100%; line-height: 100%; } 16 | td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; } 17 | td.sourceCode { padding-left: 5px; } 18 | code > span.kw { font-weight: bold; } /* Keyword */ 19 | code > span.dt { text-decoration: underline; } /* DataType */ 20 | code > span.co { font-style: italic; } /* Comment */ 21 | code > span.al { font-weight: bold; } /* Alert */ 22 | code > span.er { font-weight: bold; } /* Error */ 23 | code > span.wa { font-style: italic; } /* Warning */ 24 | code > span.cf { font-weight: bold; } /* ControlFlow */ 25 | code > span.pp { font-weight: bold; } /* Preprocessor */ 26 | code > span.do { font-style: italic; } /* Documentation */ 27 | code > span.an { font-style: italic; } /* Annotation */ 28 | code > span.cv { font-style: italic; } /* CommentVar */ 29 | code > span.in { font-style: italic; } /* Information */ -------------------------------------------------------------------------------- /skylighting/css/built-in-styles/pandoc_v1/pygments.css: -------------------------------------------------------------------------------- 1 | /* ============================================================================== 2 | Pygments (pandoc built-in style) 3 | ============================================================================== 4 | Style based on Pygments' default colors. 5 | 6 | This stylesheet was produced using Pandoc v1.19.2. 7 | 8 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu). 9 | Released under the GPL, version 2 or greater. 10 | ------------------------------------------------------------------------------ 11 | */ 12 | div.sourceCode { overflow-x: auto; } 13 | table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode { 14 | margin: 0; padding: 0; vertical-align: baseline; border: none; } 15 | table.sourceCode { width: 100%; line-height: 100%; } 16 | td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; } 17 | td.sourceCode { padding-left: 5px; } 18 | code > span.kw { color: #007020; font-weight: bold; } /* Keyword */ 19 | code > span.dt { color: #902000; } /* DataType */ 20 | code > span.dv { color: #40a070; } /* DecVal */ 21 | code > span.bn { color: #40a070; } /* BaseN */ 22 | code > span.fl { color: #40a070; } /* Float */ 23 | code > span.ch { color: #4070a0; } /* Char */ 24 | code > span.st { color: #4070a0; } /* String */ 25 | code > span.co { color: #60a0b0; font-style: italic; } /* Comment */ 26 | code > span.ot { color: #007020; } /* Other */ 27 | code > span.al { color: #ff0000; font-weight: bold; } /* Alert */ 28 | code > span.fu { color: #06287e; } /* Function */ 29 | code > span.er { color: #ff0000; font-weight: bold; } /* Error */ 30 | code > span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */ 31 | code > span.cn { color: #880000; } /* Constant */ 32 | code > span.sc { color: #4070a0; } /* SpecialChar */ 33 | code > span.vs { color: #4070a0; } /* VerbatimString */ 34 | code > span.ss { color: #bb6688; } /* SpecialString */ 35 | code > span.im { } /* Import */ 36 | code > span.va { color: #19177c; } /* Variable */ 37 | code > span.cf { color: #007020; font-weight: bold; } /* ControlFlow */ 38 | code > span.op { color: #666666; } /* Operator */ 39 | code > span.bu { } /* BuiltIn */ 40 | code > span.ex { } /* Extension */ 41 | code > span.pp { color: #bc7a00; } /* Preprocessor */ 42 | code > span.at { color: #7d9029; } /* Attribute */ 43 | code > span.do { color: #ba2121; font-style: italic; } /* Documentation */ 44 | code > span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */ 45 | code > span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */ 46 | code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */ -------------------------------------------------------------------------------- /skylighting/css/built-in-styles/pandoc_v1/tango.css: -------------------------------------------------------------------------------- 1 | /* ============================================================================== 2 | Tango (pandoc built-in style) 3 | ============================================================================== 4 | Style based on Pygments' "tango" colors. 5 | 6 | This stylesheet was produced using Pandoc v1.19.2. 7 | 8 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu). 9 | Released under the GPL, version 2 or greater. 10 | ------------------------------------------------------------------------------ 11 | */ 12 | div.sourceCode { overflow-x: auto; } 13 | table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode { 14 | margin: 0; padding: 0; vertical-align: baseline; border: none; } 15 | table.sourceCode { width: 100%; line-height: 100%; background-color: #f8f8f8; } 16 | td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; } 17 | td.sourceCode { padding-left: 5px; } 18 | pre, code { background-color: #f8f8f8; } 19 | code > span.kw { color: #204a87; font-weight: bold; } /* Keyword */ 20 | code > span.dt { color: #204a87; } /* DataType */ 21 | code > span.dv { color: #0000cf; } /* DecVal */ 22 | code > span.bn { color: #0000cf; } /* BaseN */ 23 | code > span.fl { color: #0000cf; } /* Float */ 24 | code > span.ch { color: #4e9a06; } /* Char */ 25 | code > span.st { color: #4e9a06; } /* String */ 26 | code > span.co { color: #8f5902; font-style: italic; } /* Comment */ 27 | code > span.ot { color: #8f5902; } /* Other */ 28 | code > span.al { color: #ef2929; } /* Alert */ 29 | code > span.fu { color: #000000; } /* Function */ 30 | code > span.er { color: #a40000; font-weight: bold; } /* Error */ 31 | code > span.wa { color: #8f5902; font-weight: bold; font-style: italic; } /* Warning */ 32 | code > span.cn { color: #000000; } /* Constant */ 33 | code > span.sc { color: #000000; } /* SpecialChar */ 34 | code > span.vs { color: #4e9a06; } /* VerbatimString */ 35 | code > span.ss { color: #4e9a06; } /* SpecialString */ 36 | code > span.im { } /* Import */ 37 | code > span.va { color: #000000; } /* Variable */ 38 | code > span.cf { color: #204a87; font-weight: bold; } /* ControlFlow */ 39 | code > span.op { color: #ce5c00; font-weight: bold; } /* Operator */ 40 | code > span.pp { color: #8f5902; font-style: italic; } /* Preprocessor */ 41 | code > span.ex { } /* Extension */ 42 | code > span.at { color: #c4a000; } /* Attribute */ 43 | code > span.do { color: #8f5902; font-weight: bold; font-style: italic; } /* Documentation */ 44 | code > span.an { color: #8f5902; font-weight: bold; font-style: italic; } /* Annotation */ 45 | code > span.cv { color: #8f5902; font-weight: bold; font-style: italic; } /* CommentVar */ 46 | code > span.in { color: #8f5902; font-weight: bold; font-style: italic; } /* Information */ -------------------------------------------------------------------------------- /skylighting/css/built-in-styles/pandoc_v1/zenburn.css: -------------------------------------------------------------------------------- 1 | /* ============================================================================== 2 | Zenburn (pandoc built-in style) 3 | ============================================================================== 4 | Style based on the popular "Zenburn" Vim color scheme: 5 | 6 | http://kippura.org/zenburnpage/ 7 | 8 | This stylesheet was produced using Pandoc v1.19.2. 9 | 10 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu). 11 | Released under the GPL, version 2 or greater. 12 | ------------------------------------------------------------------------------ 13 | */ 14 | div.sourceCode { overflow-x: auto; } 15 | table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode { 16 | margin: 0; padding: 0; vertical-align: baseline; border: none; } 17 | table.sourceCode { width: 100%; line-height: 100%; background-color: #303030; color: #cccccc; } 18 | td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; } 19 | td.sourceCode { padding-left: 5px; } 20 | pre, code { color: #cccccc; background-color: #303030; } 21 | code > span.kw { color: #f0dfaf; } /* Keyword */ 22 | code > span.dt { color: #dfdfbf; } /* DataType */ 23 | code > span.dv { color: #dcdccc; } /* DecVal */ 24 | code > span.bn { color: #dca3a3; } /* BaseN */ 25 | code > span.fl { color: #c0bed1; } /* Float */ 26 | code > span.ch { color: #dca3a3; } /* Char */ 27 | code > span.st { color: #cc9393; } /* String */ 28 | code > span.co { color: #7f9f7f; } /* Comment */ 29 | code > span.ot { color: #efef8f; } /* Other */ 30 | code > span.al { color: #ffcfaf; } /* Alert */ 31 | code > span.fu { color: #efef8f; } /* Function */ 32 | code > span.er { color: #c3bf9f; } /* Error */ 33 | code > span.wa { color: #7f9f7f; font-weight: bold; } /* Warning */ 34 | code > span.cn { color: #dca3a3; font-weight: bold; } /* Constant */ 35 | code > span.sc { color: #dca3a3; } /* SpecialChar */ 36 | code > span.vs { color: #cc9393; } /* VerbatimString */ 37 | code > span.ss { color: #cc9393; } /* SpecialString */ 38 | code > span.im { } /* Import */ 39 | code > span.va { } /* Variable */ 40 | code > span.cf { color: #f0dfaf; } /* ControlFlow */ 41 | code > span.op { color: #f0efd0; } /* Operator */ 42 | code > span.bu { } /* BuiltIn */ 43 | code > span.ex { } /* Extension */ 44 | code > span.pp { color: #ffcfaf; font-weight: bold; } /* Preprocessor */ 45 | code > span.at { } /* Attribute */ 46 | code > span.do { color: #7f9f7f; } /* Documentation */ 47 | code > span.an { color: #7f9f7f; font-weight: bold; } /* Annotation */ 48 | code > span.cv { color: #7f9f7f; font-weight: bold; } /* CommentVar */ 49 | code > span.in { color: #7f9f7f; font-weight: bold; } /* Information */ -------------------------------------------------------------------------------- /skylighting/css/built-in-styles/pygments.css: -------------------------------------------------------------------------------- 1 | /* ============================================================================== 2 | Pygments (pandoc built-in style) 3 | ============================================================================== 4 | Style based on Pygments' default colors. 5 | 6 | This stylesheet was produced using Pandoc v2.7.2. 7 | 8 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu). 9 | Released under the GPL, version 2 or greater. 10 | ------------------------------------------------------------------------------ 11 | */ 12 | a.sourceLine { display: inline-block; line-height: 1.25; } 13 | a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; } 14 | a.sourceLine:empty { height: 1.2em; } 15 | .sourceCode { overflow: visible; } 16 | code.sourceCode { white-space: pre; position: relative; } 17 | div.sourceCode { margin: 1em 0; } 18 | pre.sourceCode { margin: 0; } 19 | @media screen { 20 | div.sourceCode { overflow: auto; } 21 | } 22 | @media print { 23 | code.sourceCode { white-space: pre-wrap; } 24 | a.sourceLine { text-indent: -1em; padding-left: 1em; } 25 | } 26 | pre.numberSource a.sourceLine 27 | { position: relative; left: -4em; } 28 | pre.numberSource a.sourceLine::before 29 | { content: attr(title); 30 | position: relative; left: -1em; text-align: right; vertical-align: baseline; 31 | border: none; pointer-events: all; display: inline-block; 32 | -webkit-touch-callout: none; -webkit-user-select: none; 33 | -khtml-user-select: none; -moz-user-select: none; 34 | -ms-user-select: none; user-select: none; 35 | padding: 0 4px; width: 4em; 36 | color: #aaaaaa; 37 | } 38 | pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; } 39 | div.sourceCode 40 | { } 41 | @media screen { 42 | a.sourceLine::before { text-decoration: underline; } 43 | } 44 | code span.al { color: #ff0000; font-weight: bold; } /* Alert */ 45 | code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */ 46 | code span.at { color: #7d9029; } /* Attribute */ 47 | code span.bn { color: #40a070; } /* BaseN */ 48 | code span.bu { } /* BuiltIn */ 49 | code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */ 50 | code span.ch { color: #4070a0; } /* Char */ 51 | code span.cn { color: #880000; } /* Constant */ 52 | code span.co { color: #60a0b0; font-style: italic; } /* Comment */ 53 | code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */ 54 | code span.do { color: #ba2121; font-style: italic; } /* Documentation */ 55 | code span.dt { color: #902000; } /* DataType */ 56 | code span.dv { color: #40a070; } /* DecVal */ 57 | code span.er { color: #ff0000; font-weight: bold; } /* Error */ 58 | code span.ex { } /* Extension */ 59 | code span.fl { color: #40a070; } /* Float */ 60 | code span.fu { color: #06287e; } /* Function */ 61 | code span.im { } /* Import */ 62 | code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */ 63 | code span.kw { color: #007020; font-weight: bold; } /* Keyword */ 64 | code span.op { color: #666666; } /* Operator */ 65 | code span.ot { color: #007020; } /* Other */ 66 | code span.pp { color: #bc7a00; } /* Preprocessor */ 67 | code span.sc { color: #4070a0; } /* SpecialChar */ 68 | code span.ss { color: #bb6688; } /* SpecialString */ 69 | code span.st { color: #4070a0; } /* String */ 70 | code span.va { color: #19177c; } /* Variable */ 71 | code span.vs { color: #4070a0; } /* VerbatimString */ 72 | code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */ 73 | -------------------------------------------------------------------------------- /skylighting/css/built-in-styles/tango.css: -------------------------------------------------------------------------------- 1 | /* ============================================================================== 2 | Tango (pandoc built-in style) 3 | ============================================================================== 4 | Style based on Pygments' "tango" colors. 5 | 6 | This stylesheet was produced using Pandoc v2.7.2. 7 | 8 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu). 9 | Released under the GPL, version 2 or greater. 10 | ------------------------------------------------------------------------------ 11 | */ 12 | a.sourceLine { display: inline-block; line-height: 1.25; } 13 | a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; } 14 | a.sourceLine:empty { height: 1.2em; } 15 | .sourceCode { overflow: visible; } 16 | code.sourceCode { white-space: pre; position: relative; } 17 | div.sourceCode { margin: 1em 0; } 18 | pre.sourceCode { margin: 0; } 19 | @media screen { 20 | div.sourceCode { overflow: auto; } 21 | } 22 | @media print { 23 | code.sourceCode { white-space: pre-wrap; } 24 | a.sourceLine { text-indent: -1em; padding-left: 1em; } 25 | } 26 | pre.numberSource a.sourceLine 27 | { position: relative; left: -4em; } 28 | pre.numberSource a.sourceLine::before 29 | { content: attr(title); 30 | position: relative; left: -1em; text-align: right; vertical-align: baseline; 31 | border: none; pointer-events: all; display: inline-block; 32 | -webkit-touch-callout: none; -webkit-user-select: none; 33 | -khtml-user-select: none; -moz-user-select: none; 34 | -ms-user-select: none; user-select: none; 35 | padding: 0 4px; width: 4em; 36 | color: #aaaaaa; 37 | } 38 | pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; } 39 | div.sourceCode 40 | { background-color: #f8f8f8; } 41 | @media screen { 42 | a.sourceLine::before { text-decoration: underline; } 43 | } 44 | code span.al { color: #ef2929; } /* Alert */ 45 | code span.an { color: #8f5902; font-weight: bold; font-style: italic; } /* Annotation */ 46 | code span.at { color: #c4a000; } /* Attribute */ 47 | code span.bn { color: #0000cf; } /* BaseN */ 48 | code span.cf { color: #204a87; font-weight: bold; } /* ControlFlow */ 49 | code span.ch { color: #4e9a06; } /* Char */ 50 | code span.cn { color: #000000; } /* Constant */ 51 | code span.co { color: #8f5902; font-style: italic; } /* Comment */ 52 | code span.cv { color: #8f5902; font-weight: bold; font-style: italic; } /* CommentVar */ 53 | code span.do { color: #8f5902; font-weight: bold; font-style: italic; } /* Documentation */ 54 | code span.dt { color: #204a87; } /* DataType */ 55 | code span.dv { color: #0000cf; } /* DecVal */ 56 | code span.er { color: #a40000; font-weight: bold; } /* Error */ 57 | code span.ex { } /* Extension */ 58 | code span.fl { color: #0000cf; } /* Float */ 59 | code span.fu { color: #000000; } /* Function */ 60 | code span.im { } /* Import */ 61 | code span.in { color: #8f5902; font-weight: bold; font-style: italic; } /* Information */ 62 | code span.kw { color: #204a87; font-weight: bold; } /* Keyword */ 63 | code span.op { color: #ce5c00; font-weight: bold; } /* Operator */ 64 | code span.ot { color: #8f5902; } /* Other */ 65 | code span.pp { color: #8f5902; font-style: italic; } /* Preprocessor */ 66 | code span.sc { color: #000000; } /* SpecialChar */ 67 | code span.ss { color: #4e9a06; } /* SpecialString */ 68 | code span.st { color: #4e9a06; } /* String */ 69 | code span.va { color: #000000; } /* Variable */ 70 | code span.vs { color: #4e9a06; } /* VerbatimString */ 71 | code span.wa { color: #8f5902; font-weight: bold; font-style: italic; } /* Warning */ 72 | -------------------------------------------------------------------------------- /skylighting/css/built-in-styles/zenburn.css: -------------------------------------------------------------------------------- 1 | /* ============================================================================== 2 | Zenburn (pandoc built-in style) 3 | ============================================================================== 4 | Style based on the popular "Zenburn" Vim color scheme: 5 | 6 | http://kippura.org/zenburnpage/ 7 | 8 | This stylesheet was produced using Pandoc v2.7.2. 9 | 10 | Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu). 11 | Released under the GPL, version 2 or greater. 12 | ------------------------------------------------------------------------------ 13 | */ 14 | a.sourceLine { display: inline-block; line-height: 1.25; } 15 | a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; } 16 | a.sourceLine:empty { height: 1.2em; } 17 | .sourceCode { overflow: visible; } 18 | code.sourceCode { white-space: pre; position: relative; } 19 | div.sourceCode { margin: 1em 0; } 20 | pre.sourceCode { margin: 0; } 21 | @media screen { 22 | div.sourceCode { overflow: auto; } 23 | } 24 | @media print { 25 | code.sourceCode { white-space: pre-wrap; } 26 | a.sourceLine { text-indent: -1em; padding-left: 1em; } 27 | } 28 | pre.numberSource a.sourceLine 29 | { position: relative; left: -4em; } 30 | pre.numberSource a.sourceLine::before 31 | { content: attr(title); 32 | position: relative; left: -1em; text-align: right; vertical-align: baseline; 33 | border: none; pointer-events: all; display: inline-block; 34 | -webkit-touch-callout: none; -webkit-user-select: none; 35 | -khtml-user-select: none; -moz-user-select: none; 36 | -ms-user-select: none; user-select: none; 37 | padding: 0 4px; width: 4em; 38 | } 39 | pre.numberSource { margin-left: 3em; padding-left: 4px; } 40 | div.sourceCode 41 | { color: #cccccc; background-color: #303030; } 42 | @media screen { 43 | a.sourceLine::before { text-decoration: underline; } 44 | } 45 | code span.al { color: #ffcfaf; } /* Alert */ 46 | code span.an { color: #7f9f7f; font-weight: bold; } /* Annotation */ 47 | code span.at { } /* Attribute */ 48 | code span.bn { color: #dca3a3; } /* BaseN */ 49 | code span.bu { } /* BuiltIn */ 50 | code span.cf { color: #f0dfaf; } /* ControlFlow */ 51 | code span.ch { color: #dca3a3; } /* Char */ 52 | code span.cn { color: #dca3a3; font-weight: bold; } /* Constant */ 53 | code span.co { color: #7f9f7f; } /* Comment */ 54 | code span.cv { color: #7f9f7f; font-weight: bold; } /* CommentVar */ 55 | code span.do { color: #7f9f7f; } /* Documentation */ 56 | code span.dt { color: #dfdfbf; } /* DataType */ 57 | code span.dv { color: #dcdccc; } /* DecVal */ 58 | code span.er { color: #c3bf9f; } /* Error */ 59 | code span.ex { } /* Extension */ 60 | code span.fl { color: #c0bed1; } /* Float */ 61 | code span.fu { color: #efef8f; } /* Function */ 62 | code span.im { } /* Import */ 63 | code span.in { color: #7f9f7f; font-weight: bold; } /* Information */ 64 | code span.kw { color: #f0dfaf; } /* Keyword */ 65 | code span.op { color: #f0efd0; } /* Operator */ 66 | code span.ot { color: #efef8f; } /* Other */ 67 | code span.pp { color: #ffcfaf; font-weight: bold; } /* Preprocessor */ 68 | code span.sc { color: #dca3a3; } /* SpecialChar */ 69 | code span.ss { color: #cc9393; } /* SpecialString */ 70 | code span.st { color: #cc9393; } /* String */ 71 | code span.va { } /* Variable */ 72 | code span.vs { color: #cc9393; } /* VerbatimString */ 73 | code span.wa { color: #7f9f7f; font-weight: bold; } /* Warning */ 74 | -------------------------------------------------------------------------------- /skylighting/css/sass-templates/README.md: -------------------------------------------------------------------------------- 1 | # Sass Highlighting Templates for Pandoc 2 | 3 | pandoc v2.7.2 | v1.19.2 4 | 5 | Sass/SCSS templates for creating custom syntax highlighting themes for pandoc v2. 6 | 7 | > __WARNING: The current Sass/CSS files in this folder will not work with pandoc `< v2.0.4`!__ 8 | > 9 | > Pandoc v2.0.4 introduced some breaking changes in the way code is syntax highlighted in html documents. (For more info, see [README in parent folder]) 10 | 11 | 12 | ----- 13 | 14 | **Table of Contents** 15 | 16 | 17 | 18 | 19 | - [Resources List](#resources-list) 20 | - [Pandoc v1 Styles](#pandoc-v1-styles) 21 | - [Introduction](#introduction) 22 | - [System Requirements](#system-requirements) 23 | - [Installing Dart Sass](#installing-dart-sass) 24 | 25 | 26 | 27 | ----- 28 | 29 | 30 | # Resources List 31 | 32 | - [`bare-bones.scss`](./bare-bones.scss) — Basic Sass/SCSS boilerplate replicating pandoc built-in sytles. 33 | - [`build-n-watch.sh`](./build-n-watch.sh) — Bash script for building and watching SCSS files in this folder. 34 | - [`UNLICENSE`](./UNLICENSE) — The Unlicense terms (pulic domain) for the SCSS files. 35 | 36 | ## Pandoc v1 Styles 37 | 38 | - [`/pandoc_v1/`](./pandoc_v1/) 39 | 40 | In the "[`/pandoc_v1/`](./pandoc_v1/)" folder you'll find the equivalent files for pandoc v1 — version 2 introduced some changes in syntax highlighting HTML tags and built-in CSS styles, so the old files are kept for projects that still require pandoc `v1.x`. 41 | 42 | From [pandoc v2.0 release notes]: 43 | 44 | > The way highlighted code blocks are formatted in HTML has been changed (David Baynard), in ways that may require changes in hard-coded CSS affecting highlighting. (If you haven't included hard-coded highlighting CSS in your template, you needn't change anything.) 45 | 46 | Most notably, line-numbered code dosen't use HTML tables anymore. 47 | 48 | # Introduction 49 | 50 | Sass (syntactically awesome stylesheets) is a great tool for creating CSS stylesheets: 51 | 52 | - http://sass-lang.com 53 | 54 | Especially so if you're planning to create a stylesheet that applies different color themes for each language — then Sass will save you time and let you work with smaller and less entangled source files. 55 | 56 | Here you'll find some ready-made SCSS templates and modules to style pandoc syntax highlighting. 57 | 58 | # System Requirements 59 | 60 | Since June, 2019 this project has switched from using [Ruby Sass] to the newest [Dart Sass] because Ruby Sass reached its end-of-life in March 26, 2019, and is no longer maintained. 61 | 62 | Since Dart Sass behavior is slightly different from Ruby Sass, anyone working on the repository Sass sources must ensure to switch to Dart Sass to avoid creating divergent CSS stylesheets. 63 | 64 | ## Installing Dart Sass 65 | 66 | The easiest way to install Dart Sass on Windows, and keep it always updated, is to install it via Chocolatey: 67 | 68 | - https://chocolatey.org/packages/sass 69 | 70 | 73 | 74 | [README in parent folder]: ../README.md#breaking-changes "Go to parent folder's README file" 75 | [pandoc v2.0 release notes]: https://github.com/jgm/pandoc/releases/tag/2.0 "View pandoc 2.0 release notes" 76 | 77 | 78 | 79 | [Sass]: https://sass-lang.com "Visit Sass website" 80 | [Ruby Sass]: https://github.com/sass/ruby-sass 81 | [Dart Sass]: https://github.com/sass/dart-sass 82 | [Choco Sass]: https://chocolatey.org/packages/sass 83 | 84 | 85 | -------------------------------------------------------------------------------- /skylighting/css/sass-templates/UNLICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /skylighting/css/sass-templates/barebones.scss: -------------------------------------------------------------------------------- 1 | // ============================================================================= 2 | // Bare-Bones Pandoc Highlighting Theme 3 | // ============================================================================= 4 | // "bare-bones.scss" v2.2 (2019/06/08) | pandoc v2.7.2 | by Tristano Ajmone 5 | // 6 | // This Sass template emulates the definitions and structure of pandoc (v2.x) 7 | // built-in CSS styles (skylighting themes for syntax highlighting). 8 | // 9 | // Based on pandoc built-in style "Breezedark". 10 | // 11 | // All possible syntax tokens covered. Defintions for the "Normal" token were 12 | // removed since pandoc doesn't use it. 13 | // 14 | // Use this file as a starting point for your custom themes: adjust it to your 15 | // needs and delete tokens that don't apply to the target language/syntax. 16 | // 17 | // Released into the public domain according to the Unlicense terms: 18 | // 19 | // http://unlicense.org/ 20 | // 21 | // Credits and mentioning are not mandatory -- but they'd be highly appreciated! 22 | // ----------------------------------------------------------------------------- 23 | a.sourceLine { 24 | display: inline-block; 25 | line-height: 1.25; 26 | pointer-events: none; 27 | color: inherit; 28 | text-decoration: inherit; 29 | 30 | &:empty { 31 | height: 1.2em; 32 | } 33 | } 34 | 35 | .sourceCode { 36 | overflow: visible; 37 | } 38 | 39 | code.sourceCode { 40 | white-space: pre; 41 | position: relative; 42 | } 43 | 44 | div.sourceCode { 45 | margin: 1em 0; 46 | } 47 | 48 | pre.sourceCode { 49 | margin: 0; 50 | } 51 | 52 | @media screen { 53 | 54 | div.sourceCode { 55 | overflow: auto; 56 | } 57 | 58 | a.sourceLine::before { 59 | text-decoration: underline; // Line Numbers Underlining 60 | } 61 | } 62 | 63 | @media print { 64 | 65 | code.sourceCode { 66 | white-space: pre-wrap; 67 | } 68 | a.sourceLine { 69 | text-indent: -1em; 70 | padding-left: 1em; 71 | } 72 | } 73 | 74 | pre.numberSource a.sourceLine { 75 | position: relative; 76 | left: -4em; 77 | 78 | &::before { 79 | content: attr(title); 80 | position: relative; 81 | left: -1em; 82 | text-align: right; 83 | vertical-align: baseline; 84 | border: none; 85 | pointer-events: all; 86 | display: inline-block; 87 | -webkit-touch-callout: none; 88 | -webkit-user-select: none; 89 | -khtml-user-select: none; 90 | -moz-user-select: none; 91 | -ms-user-select: none; 92 | user-select: none; 93 | padding: 0 4px; width: 4em; 94 | background-color: #232629; // Line Numbers Gutter BG Color 95 | color: #7a7c7d; // Line Numbers Color 96 | } 97 | } 98 | 99 | pre.numberSource { 100 | margin-left: 3em; 101 | border-left: 1px solid #7a7c7d; // Line Numbers Gutter Border 102 | padding-left: 4px; 103 | } 104 | 105 | div.sourceCode { 106 | color: #cfcfc2; // Base Color (ie: "Normal") 107 | background-color: #232629; // Code Block BG Color (ie: Canvas BG) 108 | } 109 | 110 | // ============================================================================== 111 | // Syntax Tokens 112 | // ============================================================================== 113 | code { 114 | & span { 115 | &.al { // Alert 116 | color: #95da4c; 117 | } 118 | &.an { // Annotation 119 | color: #3f8058; 120 | } 121 | &.at { // Attribute 122 | color: #2980b9; 123 | } 124 | &.bn { // BaseN 125 | color: #f67400; 126 | } 127 | &.bu { // BuiltIn 128 | color: #7f8c8d; 129 | } 130 | &.cf { // ControlFlow 131 | color: #fdbc4b; 132 | } 133 | &.ch { // Char 134 | color: #3daee9; 135 | } 136 | &.cn { // Constant 137 | color: #27aeae; 138 | } 139 | &.co { // Comment 140 | color: #7a7c7d; 141 | } 142 | &.cv { // CommentVar 143 | color: #7f8c8d; 144 | } 145 | &.do { // Documentation 146 | color: #a43340; 147 | } 148 | &.dt { // DataType 149 | color: #2980b9; 150 | } 151 | &.dv { // DecVal 152 | color: #f67400; 153 | } 154 | &.er { // Error 155 | color: #da4453; 156 | } 157 | &.ex { // Extension 158 | color: #0099ff; 159 | } 160 | &.fl { // Float 161 | color: #f67400; 162 | } 163 | &.fu { // Function 164 | color: #8e44ad; 165 | } 166 | &.im { // Import 167 | color: #27ae60; 168 | } 169 | &.in { // Information 170 | color: #c45b00; 171 | } 172 | &.kw { // Keyword 173 | color: #cfcfc2; 174 | } 175 | &.op { // Operator 176 | color: #cfcfc2; 177 | } 178 | &.ot { // Other 179 | color: #27ae60; 180 | } 181 | &.pp { // Preprocessor 182 | color: #27ae60; 183 | } 184 | &.re { // RegionMarker 185 | color: #2980b9; 186 | } 187 | &.sc { // SpecialChar 188 | color: #3daee9; 189 | } 190 | &.ss { // SpecialString 191 | color: #da4453; 192 | } 193 | &.st { // String 194 | color: #f44f4f; 195 | } 196 | &.va { // Variable 197 | color: #27aeae; 198 | } 199 | &.vs { // VerbatimString 200 | color: #da4453; 201 | } 202 | &.wa { // Warning 203 | color: #da4453; 204 | } 205 | } 206 | } 207 | 208 | -------------------------------------------------------------------------------- /skylighting/css/sass-templates/build-n-watch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ------------------------------------------------------------------------------ 3 | # This script requires Dart Sass to be installed on the system: 4 | # https://github.com/sass/dart-sass 5 | # 6 | # On Windows, you can use Chocolatey to install Dart Sass and keep it updated: 7 | # https://chocolatey.org/packages/sass 8 | # ------------------------------------------------------------------------------ 9 | sass --source-map --style=expanded ./:./ 10 | sass --source-map --style=expanded --watch ./:./ 11 | -------------------------------------------------------------------------------- /skylighting/css/sass-templates/pandoc_v1/README.md: -------------------------------------------------------------------------------- 1 | # Sass Highlighting Templates for Pandoc v1 2 | 3 | pandoc v1.19.2 4 | 5 | Sass templates for creating custom syntax highlighting themes for pandoc `v1.x`. 6 | 7 | Since pandoc v2 introduced some changes in syntax highlighting HTML tags, these old Sass/CSS files are kept for projects that still require pandoc `v1.x`. 8 | 9 | # Resources List 10 | 11 | - [`bare-bones.scss`](./bare-bones.scss) — Basic Sass/SCSS boilerplate replicating pandoc built-in sytles. 12 | - [`build-n-watch.sh`](./build-n-watch.sh) — Bash script for building and watching SCSS files in this folder. 13 | - [`UNLICENSE`](./UNLICENSE) — The Unlicense terms (pulic domain) for the SCSS files. 14 | 15 | 16 | -------------------------------------------------------------------------------- /skylighting/css/sass-templates/pandoc_v1/bare-bones.scss: -------------------------------------------------------------------------------- 1 | /* 2 | ============================================================================== 3 | Bare-Bones Pandoc Highlighting Theme 4 | ============================================================================== 5 | "bare-bones.scss" v1.0.1 (2017-11-16) | pandoc v1.19.2 | by Tristano Ajmone. 6 | 7 | This Sass template emulates the definitions and structure of pandoc's (v1.x) 8 | built-in CSS styles (skylighting themes for syntax highlighting). 9 | 10 | All possible syntax tokens are covered. 11 | 12 | Use it as a starting point for your custom themes: adjust it to your needs and 13 | delete tokens that don't apply to the language/syntax you're targeting. 14 | 15 | Released into the public domain according to the Unlicense terms: 16 | 17 | http://unlicense.org/ 18 | 19 | Credits and mentioning are not mandatory -- but they'd be highly appreciated! 20 | ------------------------------------------------------------------------------ 21 | */ 22 | div.sourceCode { 23 | overflow-x: auto; 24 | } 25 | 26 | table.sourceCode, 27 | tr.sourceCode, 28 | td.lineNumbers, 29 | td.sourceCode { 30 | margin: 0; 31 | padding: 0; 32 | vertical-align: baseline; 33 | border: none; 34 | } 35 | 36 | pre, 37 | code, 38 | table.sourceCode { 39 | background-color: #dddddd; 40 | color: #000000; 41 | } 42 | 43 | table.sourceCode { 44 | width: 100%; 45 | line-height: 100%; 46 | } 47 | 48 | td { 49 | &.lineNumbers { 50 | text-align: right; 51 | padding-right: 4px; 52 | padding-left: 4px; 53 | color: #aaaaaa; 54 | border-right: 1px solid #aaaaaa; 55 | } 56 | &.sourceCode { 57 | padding-left: 5px; 58 | } 59 | } 60 | 61 | code { 62 | & > span { 63 | &.al { /* Alert */ 64 | color: #000000; 65 | } 66 | &.an { /* Annotation */ 67 | color: #000000; 68 | } 69 | &.at { /* Attribute */ 70 | color: #000000; 71 | } 72 | &.bn { /* BaseN */ 73 | color: #000000; 74 | } 75 | &.bu { /* BuiltIn */ 76 | color: #000000; 77 | } 78 | &.cf { /* Control Flow */ 79 | color: #000000; 80 | } 81 | &.ch { /* Char */ 82 | color: #000000; 83 | } 84 | &.cn { /* Constant */ 85 | color: #000000; 86 | } 87 | &.co { /* Comment */ 88 | color: #000000; 89 | } 90 | &.cv { /* Comment Var */ 91 | color: #000000; 92 | } 93 | &.do { /* Documentation */ 94 | color: #000000; 95 | } 96 | &.dt { /* DataType */ 97 | color: #000000; 98 | } 99 | &.dv { /* DecVal */ 100 | color: #000000; 101 | } 102 | &.er { /* Error */ 103 | color: #000000; 104 | } 105 | &.ex { /* Extension */ 106 | color: #000000; 107 | } 108 | &.fl { /* Float */ 109 | color: #000000; 110 | } 111 | &.fu { /* Function */ 112 | color: #000000; 113 | } 114 | &.im { /* Import */ 115 | color: #000000; 116 | } 117 | &.in { /* Information */ 118 | color: #000000; 119 | } 120 | &.kw { /* Keyword */ 121 | color: #000000; 122 | } 123 | &.op { /* Operator */ 124 | color: #000000; 125 | } 126 | &.ot { /* Other */ 127 | color: #000000; 128 | } 129 | &.pp { /* Preprocessor */ 130 | color: #000000; 131 | } 132 | &.re { /* Region Marker */ 133 | color: #000000; 134 | } 135 | &.sc { /* Special Char */ 136 | color: #000000; 137 | } 138 | &.ss { /* Special String */ 139 | color: #000000; 140 | } 141 | &.st { /* String */ 142 | color: #000000; 143 | } 144 | &.va { /* Variable */ 145 | color: #000000; 146 | } 147 | &.vs { /* Verbatim String */ 148 | color: #000000; 149 | } 150 | &.wa { /* Warning */ 151 | color: #000000; 152 | } 153 | } 154 | } 155 | 156 | -------------------------------------------------------------------------------- /skylighting/css/sass-templates/pandoc_v1/build-n-watch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ------------------------------------------------------------------------------ 3 | # This script requires Dart Sass to be installed on the system: 4 | # https://github.com/sass/dart-sass 5 | # 6 | # On Windows, you can use Chocolatey to install Dart Sass and keep it updated: 7 | # https://chocolatey.org/packages/sass 8 | # ------------------------------------------------------------------------------ 9 | sass --source-map --style=expanded ./:./ 10 | sass --source-map --style=expanded --watch ./:./ 11 | -------------------------------------------------------------------------------- /skylighting/themes/UNLICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /skylighting/themes/boilerplate.theme: -------------------------------------------------------------------------------- 1 | { 2 | "metadata": { 3 | "author": "Tristano Ajmone ", 4 | "license": "Unlicense", 5 | "name": "theme boilerplate", 6 | "revision": 4 7 | }, 8 | 9 | "text-color": "#888888", 10 | "background-color": "#666666", 11 | "line-number-color": "#0000ff", 12 | "line-number-background-color": "#00ff00", 13 | 14 | "text-styles": { 15 | "Alert": { 16 | "text-color": "#ffffff", 17 | "background-color": null, 18 | "bold": true, 19 | "italic": true, 20 | "underline": false 21 | }, 22 | "Annotation": { 23 | "text-color": "#ffffff", 24 | "background-color": null, 25 | "bold": true, 26 | "italic": true, 27 | "underline": false 28 | }, 29 | "Attribute": { 30 | "text-color": "#ffffff", 31 | "background-color": null, 32 | "bold": true, 33 | "italic": true, 34 | "underline": false 35 | }, 36 | "BaseN": { 37 | "text-color": "#ffffff", 38 | "background-color": null, 39 | "bold": true, 40 | "italic": true, 41 | "underline": false 42 | }, 43 | "BuiltIn": { 44 | "text-color": "#ffffff", 45 | "background-color": null, 46 | "bold": true, 47 | "italic": true, 48 | "underline": false 49 | }, 50 | "Char": { 51 | "text-color": "#ffffff", 52 | "background-color": null, 53 | "bold": true, 54 | "italic": true, 55 | "underline": false 56 | }, 57 | "Comment": { 58 | "text-color": "#ffffff", 59 | "background-color": null, 60 | "bold": true, 61 | "italic": true, 62 | "underline": false 63 | }, 64 | "CommentVar": { 65 | "text-color": "#ffffff", 66 | "background-color": null, 67 | "bold": true, 68 | "italic": true, 69 | "underline": false 70 | }, 71 | "Constant": { 72 | "text-color": "#ffffff", 73 | "background-color": null, 74 | "bold": true, 75 | "italic": true, 76 | "underline": false 77 | }, 78 | "ControlFlow": { 79 | "text-color": "#ffffff", 80 | "background-color": null, 81 | "bold": true, 82 | "italic": true, 83 | "underline": false 84 | }, 85 | "DataType": { 86 | "text-color": "#ffffff", 87 | "background-color": null, 88 | "bold": true, 89 | "italic": true, 90 | "underline": false 91 | }, 92 | "DecVal": { 93 | "text-color": "#ffffff", 94 | "background-color": null, 95 | "bold": true, 96 | "italic": true, 97 | "underline": false 98 | }, 99 | "Documentation": { 100 | "text-color": "#ffffff", 101 | "background-color": null, 102 | "bold": true, 103 | "italic": true, 104 | "underline": false 105 | }, 106 | "Error": { 107 | "text-color": "#ffffff", 108 | "background-color": null, 109 | "bold": true, 110 | "italic": true, 111 | "underline": false 112 | }, 113 | "Extension": { 114 | "text-color": "#ffffff", 115 | "background-color": null, 116 | "bold": true, 117 | "italic": true, 118 | "underline": false 119 | }, 120 | "Float": { 121 | "text-color": "#ffffff", 122 | "background-color": null, 123 | "bold": true, 124 | "italic": true, 125 | "underline": false 126 | }, 127 | "Function": { 128 | "text-color": "#ffffff", 129 | "background-color": null, 130 | "bold": true, 131 | "italic": true, 132 | "underline": false 133 | }, 134 | "Import": { 135 | "text-color": null, 136 | "background-color": null, 137 | "bold": null, 138 | "italic": true, 139 | "underline": false 140 | }, 141 | "Information": { 142 | "text-color": "#ffffff", 143 | "background-color": null, 144 | "bold": true, 145 | "italic": true, 146 | "underline": false 147 | }, 148 | "Keyword": { 149 | "text-color": "#ffffff", 150 | "background-color": null, 151 | "bold": true, 152 | "italic": true, 153 | "underline": false 154 | }, 155 | "Operator": { 156 | "text-color": "#ffffff", 157 | "background-color": null, 158 | "bold": true, 159 | "italic": true, 160 | "underline": false 161 | }, 162 | "Others": { 163 | "text-color": "#ffffff", 164 | "background-color": null, 165 | "bold": true, 166 | "italic": true, 167 | "underline": false 168 | }, 169 | "Preprocessor": { 170 | "text-color": "#ffffff", 171 | "background-color": null, 172 | "bold": true, 173 | "italic": true, 174 | "underline": false 175 | }, 176 | "RegionMarker": { 177 | "text-color": "#ffffff", 178 | "background-color": null, 179 | "bold": true, 180 | "italic": true, 181 | "underline": false 182 | }, 183 | "SpecialChar": { 184 | "text-color": "#ffffff", 185 | "background-color": null, 186 | "bold": true, 187 | "italic": true, 188 | "underline": false 189 | }, 190 | "SpecialString": { 191 | "text-color": "#ffffff", 192 | "background-color": null, 193 | "bold": true, 194 | "italic": true, 195 | "underline": false 196 | }, 197 | "String": { 198 | "text-color": "#ffffff", 199 | "background-color": null, 200 | "bold": true, 201 | "italic": true, 202 | "underline": false 203 | }, 204 | "Variable": { 205 | "text-color": "#ffffff", 206 | "background-color": null, 207 | "bold": true, 208 | "italic": true, 209 | "underline": false 210 | }, 211 | "VerbatimString": { 212 | "text-color": "#ffffff", 213 | "background-color": null, 214 | "bold": true, 215 | "italic": true, 216 | "underline": false 217 | }, 218 | "Warning": { 219 | "text-color": "#ffffff", 220 | "background-color": null, 221 | "bold": true, 222 | "italic": true, 223 | "underline": false 224 | } 225 | } 226 | } -------------------------------------------------------------------------------- /skylighting/themes/builtin-espresso.theme: -------------------------------------------------------------------------------- 1 | { 2 | "text-color": "#bdae9d", 3 | "background-color": "#2a211c", 4 | "line-number-color": "#bdae9d", 5 | "line-number-background-color": "#2a211c", 6 | "text-styles": { 7 | "Attribute": { 8 | "text-color": null, 9 | "background-color": null, 10 | "bold": false, 11 | "italic": false, 12 | "underline": false 13 | }, 14 | "SpecialString": { 15 | "text-color": "#049b0a", 16 | "background-color": null, 17 | "bold": false, 18 | "italic": false, 19 | "underline": false 20 | }, 21 | "Annotation": { 22 | "text-color": "#0066ff", 23 | "background-color": null, 24 | "bold": true, 25 | "italic": true, 26 | "underline": false 27 | }, 28 | "Function": { 29 | "text-color": "#ff9358", 30 | "background-color": null, 31 | "bold": true, 32 | "italic": false, 33 | "underline": false 34 | }, 35 | "String": { 36 | "text-color": "#049b0a", 37 | "background-color": null, 38 | "bold": false, 39 | "italic": false, 40 | "underline": false 41 | }, 42 | "ControlFlow": { 43 | "text-color": "#43a8ed", 44 | "background-color": null, 45 | "bold": true, 46 | "italic": false, 47 | "underline": false 48 | }, 49 | "Operator": { 50 | "text-color": null, 51 | "background-color": null, 52 | "bold": false, 53 | "italic": false, 54 | "underline": false 55 | }, 56 | "Error": { 57 | "text-color": "#ffff00", 58 | "background-color": null, 59 | "bold": true, 60 | "italic": false, 61 | "underline": false 62 | }, 63 | "BaseN": { 64 | "text-color": "#44aa43", 65 | "background-color": null, 66 | "bold": false, 67 | "italic": false, 68 | "underline": false 69 | }, 70 | "Alert": { 71 | "text-color": "#ffff00", 72 | "background-color": null, 73 | "bold": false, 74 | "italic": false, 75 | "underline": false 76 | }, 77 | "Variable": { 78 | "text-color": null, 79 | "background-color": null, 80 | "bold": false, 81 | "italic": false, 82 | "underline": false 83 | }, 84 | "BuiltIn": { 85 | "text-color": null, 86 | "background-color": null, 87 | "bold": false, 88 | "italic": false, 89 | "underline": false 90 | }, 91 | "Extension": { 92 | "text-color": null, 93 | "background-color": null, 94 | "bold": false, 95 | "italic": false, 96 | "underline": false 97 | }, 98 | "Preprocessor": { 99 | "text-color": null, 100 | "background-color": null, 101 | "bold": true, 102 | "italic": false, 103 | "underline": false 104 | }, 105 | "Information": { 106 | "text-color": "#0066ff", 107 | "background-color": null, 108 | "bold": true, 109 | "italic": true, 110 | "underline": false 111 | }, 112 | "VerbatimString": { 113 | "text-color": "#049b0a", 114 | "background-color": null, 115 | "bold": false, 116 | "italic": false, 117 | "underline": false 118 | }, 119 | "Warning": { 120 | "text-color": "#ffff00", 121 | "background-color": null, 122 | "bold": true, 123 | "italic": false, 124 | "underline": false 125 | }, 126 | "Documentation": { 127 | "text-color": "#0066ff", 128 | "background-color": null, 129 | "bold": false, 130 | "italic": true, 131 | "underline": false 132 | }, 133 | "Import": { 134 | "text-color": null, 135 | "background-color": null, 136 | "bold": false, 137 | "italic": false, 138 | "underline": false 139 | }, 140 | "Char": { 141 | "text-color": "#049b0a", 142 | "background-color": null, 143 | "bold": false, 144 | "italic": false, 145 | "underline": false 146 | }, 147 | "DataType": { 148 | "text-color": null, 149 | "background-color": null, 150 | "bold": false, 151 | "italic": false, 152 | "underline": true 153 | }, 154 | "Float": { 155 | "text-color": "#44aa43", 156 | "background-color": null, 157 | "bold": false, 158 | "italic": false, 159 | "underline": false 160 | }, 161 | "Comment": { 162 | "text-color": "#0066ff", 163 | "background-color": null, 164 | "bold": true, 165 | "italic": true, 166 | "underline": false 167 | }, 168 | "Constant": { 169 | "text-color": null, 170 | "background-color": null, 171 | "bold": false, 172 | "italic": false, 173 | "underline": false 174 | }, 175 | "SpecialChar": { 176 | "text-color": "#049b0a", 177 | "background-color": null, 178 | "bold": false, 179 | "italic": false, 180 | "underline": false 181 | }, 182 | "DecVal": { 183 | "text-color": "#44aa43", 184 | "background-color": null, 185 | "bold": false, 186 | "italic": false, 187 | "underline": false 188 | }, 189 | "Keyword": { 190 | "text-color": "#43a8ed", 191 | "background-color": null, 192 | "bold": true, 193 | "italic": false, 194 | "underline": false 195 | } 196 | } 197 | } 198 | -------------------------------------------------------------------------------- /skylighting/themes/builtin-haddock.theme: -------------------------------------------------------------------------------- 1 | { 2 | "text-color": null, 3 | "background-color": null, 4 | "line-number-color": "#aaaaaa", 5 | "line-number-background-color": null, 6 | "text-styles": { 7 | "Other": { 8 | "text-color": "#ff4000", 9 | "background-color": null, 10 | "bold": false, 11 | "italic": false, 12 | "underline": false 13 | }, 14 | "Attribute": { 15 | "text-color": null, 16 | "background-color": null, 17 | "bold": false, 18 | "italic": false, 19 | "underline": false 20 | }, 21 | "SpecialString": { 22 | "text-color": "#008080", 23 | "background-color": null, 24 | "bold": false, 25 | "italic": false, 26 | "underline": false 27 | }, 28 | "Annotation": { 29 | "text-color": "#008000", 30 | "background-color": null, 31 | "bold": false, 32 | "italic": false, 33 | "underline": false 34 | }, 35 | "String": { 36 | "text-color": "#008080", 37 | "background-color": null, 38 | "bold": false, 39 | "italic": false, 40 | "underline": false 41 | }, 42 | "ControlFlow": { 43 | "text-color": "#0000ff", 44 | "background-color": null, 45 | "bold": false, 46 | "italic": false, 47 | "underline": false 48 | }, 49 | "Operator": { 50 | "text-color": null, 51 | "background-color": null, 52 | "bold": false, 53 | "italic": false, 54 | "underline": false 55 | }, 56 | "Error": { 57 | "text-color": "#ff0000", 58 | "background-color": null, 59 | "bold": true, 60 | "italic": false, 61 | "underline": false 62 | }, 63 | "Alert": { 64 | "text-color": "#ff0000", 65 | "background-color": null, 66 | "bold": false, 67 | "italic": false, 68 | "underline": false 69 | }, 70 | "Variable": { 71 | "text-color": null, 72 | "background-color": null, 73 | "bold": false, 74 | "italic": false, 75 | "underline": false 76 | }, 77 | "BuiltIn": { 78 | "text-color": null, 79 | "background-color": null, 80 | "bold": false, 81 | "italic": false, 82 | "underline": false 83 | }, 84 | "Extension": { 85 | "text-color": null, 86 | "background-color": null, 87 | "bold": false, 88 | "italic": false, 89 | "underline": false 90 | }, 91 | "Preprocessor": { 92 | "text-color": "#ff4000", 93 | "background-color": null, 94 | "bold": false, 95 | "italic": false, 96 | "underline": false 97 | }, 98 | "Information": { 99 | "text-color": "#008000", 100 | "background-color": null, 101 | "bold": false, 102 | "italic": false, 103 | "underline": false 104 | }, 105 | "VerbatimString": { 106 | "text-color": "#008080", 107 | "background-color": null, 108 | "bold": false, 109 | "italic": false, 110 | "underline": false 111 | }, 112 | "Warning": { 113 | "text-color": "#008000", 114 | "background-color": null, 115 | "bold": true, 116 | "italic": false, 117 | "underline": false 118 | }, 119 | "Documentation": { 120 | "text-color": "#008000", 121 | "background-color": null, 122 | "bold": false, 123 | "italic": false, 124 | "underline": false 125 | }, 126 | "Import": { 127 | "text-color": null, 128 | "background-color": null, 129 | "bold": false, 130 | "italic": false, 131 | "underline": false 132 | }, 133 | "Char": { 134 | "text-color": "#008080", 135 | "background-color": null, 136 | "bold": false, 137 | "italic": false, 138 | "underline": false 139 | }, 140 | "Comment": { 141 | "text-color": "#008000", 142 | "background-color": null, 143 | "bold": false, 144 | "italic": false, 145 | "underline": false 146 | }, 147 | "CommentVar": { 148 | "text-color": "#008000", 149 | "background-color": null, 150 | "bold": false, 151 | "italic": false, 152 | "underline": false 153 | }, 154 | "Constant": { 155 | "text-color": null, 156 | "background-color": null, 157 | "bold": false, 158 | "italic": false, 159 | "underline": false 160 | }, 161 | "SpecialChar": { 162 | "text-color": "#008080", 163 | "background-color": null, 164 | "bold": false, 165 | "italic": false, 166 | "underline": false 167 | }, 168 | "Keyword": { 169 | "text-color": "#0000ff", 170 | "background-color": null, 171 | "bold": false, 172 | "italic": false, 173 | "underline": false 174 | } 175 | } 176 | } 177 | -------------------------------------------------------------------------------- /skylighting/themes/builtin-monochrome.theme: -------------------------------------------------------------------------------- 1 | { 2 | "text-color": null, 3 | "background-color": null, 4 | "line-number-color": null, 5 | "line-number-background-color": null, 6 | "text-styles": { 7 | "Annotation": { 8 | "text-color": null, 9 | "background-color": null, 10 | "bold": false, 11 | "italic": true, 12 | "underline": false 13 | }, 14 | "ControlFlow": { 15 | "text-color": null, 16 | "background-color": null, 17 | "bold": true, 18 | "italic": false, 19 | "underline": false 20 | }, 21 | "Error": { 22 | "text-color": null, 23 | "background-color": null, 24 | "bold": true, 25 | "italic": false, 26 | "underline": false 27 | }, 28 | "Alert": { 29 | "text-color": null, 30 | "background-color": null, 31 | "bold": true, 32 | "italic": false, 33 | "underline": false 34 | }, 35 | "Preprocessor": { 36 | "text-color": null, 37 | "background-color": null, 38 | "bold": true, 39 | "italic": false, 40 | "underline": false 41 | }, 42 | "Information": { 43 | "text-color": null, 44 | "background-color": null, 45 | "bold": false, 46 | "italic": true, 47 | "underline": false 48 | }, 49 | "Warning": { 50 | "text-color": null, 51 | "background-color": null, 52 | "bold": false, 53 | "italic": true, 54 | "underline": false 55 | }, 56 | "Documentation": { 57 | "text-color": null, 58 | "background-color": null, 59 | "bold": false, 60 | "italic": true, 61 | "underline": false 62 | }, 63 | "DataType": { 64 | "text-color": null, 65 | "background-color": null, 66 | "bold": false, 67 | "italic": false, 68 | "underline": true 69 | }, 70 | "Comment": { 71 | "text-color": null, 72 | "background-color": null, 73 | "bold": false, 74 | "italic": true, 75 | "underline": false 76 | }, 77 | "CommentVar": { 78 | "text-color": null, 79 | "background-color": null, 80 | "bold": false, 81 | "italic": true, 82 | "underline": false 83 | }, 84 | "Keyword": { 85 | "text-color": null, 86 | "background-color": null, 87 | "bold": true, 88 | "italic": false, 89 | "underline": false 90 | } 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /skylighting/themes/builtin-pygments.theme: -------------------------------------------------------------------------------- 1 | { 2 | "text-color": null, 3 | "background-color": null, 4 | "line-number-color": "#aaaaaa", 5 | "line-number-background-color": null, 6 | "text-styles": { 7 | "Other": { 8 | "text-color": "#007020", 9 | "background-color": null, 10 | "bold": false, 11 | "italic": false, 12 | "underline": false 13 | }, 14 | "Attribute": { 15 | "text-color": "#7d9029", 16 | "background-color": null, 17 | "bold": false, 18 | "italic": false, 19 | "underline": false 20 | }, 21 | "SpecialString": { 22 | "text-color": "#bb6688", 23 | "background-color": null, 24 | "bold": false, 25 | "italic": false, 26 | "underline": false 27 | }, 28 | "Annotation": { 29 | "text-color": "#60a0b0", 30 | "background-color": null, 31 | "bold": true, 32 | "italic": true, 33 | "underline": false 34 | }, 35 | "Function": { 36 | "text-color": "#06287e", 37 | "background-color": null, 38 | "bold": false, 39 | "italic": false, 40 | "underline": false 41 | }, 42 | "String": { 43 | "text-color": "#4070a0", 44 | "background-color": null, 45 | "bold": false, 46 | "italic": false, 47 | "underline": false 48 | }, 49 | "ControlFlow": { 50 | "text-color": "#007020", 51 | "background-color": null, 52 | "bold": true, 53 | "italic": false, 54 | "underline": false 55 | }, 56 | "Operator": { 57 | "text-color": "#666666", 58 | "background-color": null, 59 | "bold": false, 60 | "italic": false, 61 | "underline": false 62 | }, 63 | "Error": { 64 | "text-color": "#ff0000", 65 | "background-color": null, 66 | "bold": true, 67 | "italic": false, 68 | "underline": false 69 | }, 70 | "BaseN": { 71 | "text-color": "#40a070", 72 | "background-color": null, 73 | "bold": false, 74 | "italic": false, 75 | "underline": false 76 | }, 77 | "Alert": { 78 | "text-color": "#ff0000", 79 | "background-color": null, 80 | "bold": true, 81 | "italic": false, 82 | "underline": false 83 | }, 84 | "Variable": { 85 | "text-color": "#19177c", 86 | "background-color": null, 87 | "bold": false, 88 | "italic": false, 89 | "underline": false 90 | }, 91 | "BuiltIn": { 92 | "text-color": null, 93 | "background-color": null, 94 | "bold": false, 95 | "italic": false, 96 | "underline": false 97 | }, 98 | "Extension": { 99 | "text-color": null, 100 | "background-color": null, 101 | "bold": false, 102 | "italic": false, 103 | "underline": false 104 | }, 105 | "Preprocessor": { 106 | "text-color": "#bc7a00", 107 | "background-color": null, 108 | "bold": false, 109 | "italic": false, 110 | "underline": false 111 | }, 112 | "Information": { 113 | "text-color": "#60a0b0", 114 | "background-color": null, 115 | "bold": true, 116 | "italic": true, 117 | "underline": false 118 | }, 119 | "VerbatimString": { 120 | "text-color": "#4070a0", 121 | "background-color": null, 122 | "bold": false, 123 | "italic": false, 124 | "underline": false 125 | }, 126 | "Warning": { 127 | "text-color": "#60a0b0", 128 | "background-color": null, 129 | "bold": true, 130 | "italic": true, 131 | "underline": false 132 | }, 133 | "Documentation": { 134 | "text-color": "#ba2121", 135 | "background-color": null, 136 | "bold": false, 137 | "italic": true, 138 | "underline": false 139 | }, 140 | "Import": { 141 | "text-color": null, 142 | "background-color": null, 143 | "bold": false, 144 | "italic": false, 145 | "underline": false 146 | }, 147 | "Char": { 148 | "text-color": "#4070a0", 149 | "background-color": null, 150 | "bold": false, 151 | "italic": false, 152 | "underline": false 153 | }, 154 | "DataType": { 155 | "text-color": "#902000", 156 | "background-color": null, 157 | "bold": false, 158 | "italic": false, 159 | "underline": false 160 | }, 161 | "Float": { 162 | "text-color": "#40a070", 163 | "background-color": null, 164 | "bold": false, 165 | "italic": false, 166 | "underline": false 167 | }, 168 | "Comment": { 169 | "text-color": "#60a0b0", 170 | "background-color": null, 171 | "bold": false, 172 | "italic": true, 173 | "underline": false 174 | }, 175 | "CommentVar": { 176 | "text-color": "#60a0b0", 177 | "background-color": null, 178 | "bold": true, 179 | "italic": true, 180 | "underline": false 181 | }, 182 | "Constant": { 183 | "text-color": "#880000", 184 | "background-color": null, 185 | "bold": false, 186 | "italic": false, 187 | "underline": false 188 | }, 189 | "SpecialChar": { 190 | "text-color": "#4070a0", 191 | "background-color": null, 192 | "bold": false, 193 | "italic": false, 194 | "underline": false 195 | }, 196 | "DecVal": { 197 | "text-color": "#40a070", 198 | "background-color": null, 199 | "bold": false, 200 | "italic": false, 201 | "underline": false 202 | }, 203 | "Keyword": { 204 | "text-color": "#007020", 205 | "background-color": null, 206 | "bold": true, 207 | "italic": false, 208 | "underline": false 209 | } 210 | } 211 | } 212 | -------------------------------------------------------------------------------- /skylighting/themes/builtin-tango.theme: -------------------------------------------------------------------------------- 1 | { 2 | "text-color": null, 3 | "background-color": "#f8f8f8", 4 | "line-number-color": "#aaaaaa", 5 | "line-number-background-color": null, 6 | "text-styles": { 7 | "Other": { 8 | "text-color": "#8f5902", 9 | "background-color": null, 10 | "bold": false, 11 | "italic": false, 12 | "underline": false 13 | }, 14 | "Attribute": { 15 | "text-color": "#c4a000", 16 | "background-color": null, 17 | "bold": false, 18 | "italic": false, 19 | "underline": false 20 | }, 21 | "SpecialString": { 22 | "text-color": "#4e9a06", 23 | "background-color": null, 24 | "bold": false, 25 | "italic": false, 26 | "underline": false 27 | }, 28 | "Annotation": { 29 | "text-color": "#8f5902", 30 | "background-color": null, 31 | "bold": true, 32 | "italic": true, 33 | "underline": false 34 | }, 35 | "Function": { 36 | "text-color": "#000000", 37 | "background-color": null, 38 | "bold": false, 39 | "italic": false, 40 | "underline": false 41 | }, 42 | "String": { 43 | "text-color": "#4e9a06", 44 | "background-color": null, 45 | "bold": false, 46 | "italic": false, 47 | "underline": false 48 | }, 49 | "ControlFlow": { 50 | "text-color": "#204a87", 51 | "background-color": null, 52 | "bold": true, 53 | "italic": false, 54 | "underline": false 55 | }, 56 | "Operator": { 57 | "text-color": "#ce5c00", 58 | "background-color": null, 59 | "bold": true, 60 | "italic": false, 61 | "underline": false 62 | }, 63 | "Error": { 64 | "text-color": "#a40000", 65 | "background-color": null, 66 | "bold": true, 67 | "italic": false, 68 | "underline": false 69 | }, 70 | "BaseN": { 71 | "text-color": "#0000cf", 72 | "background-color": null, 73 | "bold": false, 74 | "italic": false, 75 | "underline": false 76 | }, 77 | "Alert": { 78 | "text-color": "#ef2929", 79 | "background-color": null, 80 | "bold": false, 81 | "italic": false, 82 | "underline": false 83 | }, 84 | "Variable": { 85 | "text-color": "#000000", 86 | "background-color": null, 87 | "bold": false, 88 | "italic": false, 89 | "underline": false 90 | }, 91 | "Extension": { 92 | "text-color": null, 93 | "background-color": null, 94 | "bold": false, 95 | "italic": false, 96 | "underline": false 97 | }, 98 | "Preprocessor": { 99 | "text-color": "#8f5902", 100 | "background-color": null, 101 | "bold": false, 102 | "italic": true, 103 | "underline": false 104 | }, 105 | "Information": { 106 | "text-color": "#8f5902", 107 | "background-color": null, 108 | "bold": true, 109 | "italic": true, 110 | "underline": false 111 | }, 112 | "VerbatimString": { 113 | "text-color": "#4e9a06", 114 | "background-color": null, 115 | "bold": false, 116 | "italic": false, 117 | "underline": false 118 | }, 119 | "Warning": { 120 | "text-color": "#8f5902", 121 | "background-color": null, 122 | "bold": true, 123 | "italic": true, 124 | "underline": false 125 | }, 126 | "Documentation": { 127 | "text-color": "#8f5902", 128 | "background-color": null, 129 | "bold": true, 130 | "italic": true, 131 | "underline": false 132 | }, 133 | "Import": { 134 | "text-color": null, 135 | "background-color": null, 136 | "bold": false, 137 | "italic": false, 138 | "underline": false 139 | }, 140 | "Char": { 141 | "text-color": "#4e9a06", 142 | "background-color": null, 143 | "bold": false, 144 | "italic": false, 145 | "underline": false 146 | }, 147 | "DataType": { 148 | "text-color": "#204a87", 149 | "background-color": null, 150 | "bold": false, 151 | "italic": false, 152 | "underline": false 153 | }, 154 | "Float": { 155 | "text-color": "#0000cf", 156 | "background-color": null, 157 | "bold": false, 158 | "italic": false, 159 | "underline": false 160 | }, 161 | "Comment": { 162 | "text-color": "#8f5902", 163 | "background-color": null, 164 | "bold": false, 165 | "italic": true, 166 | "underline": false 167 | }, 168 | "CommentVar": { 169 | "text-color": "#8f5902", 170 | "background-color": null, 171 | "bold": true, 172 | "italic": true, 173 | "underline": false 174 | }, 175 | "Constant": { 176 | "text-color": "#000000", 177 | "background-color": null, 178 | "bold": false, 179 | "italic": false, 180 | "underline": false 181 | }, 182 | "SpecialChar": { 183 | "text-color": "#000000", 184 | "background-color": null, 185 | "bold": false, 186 | "italic": false, 187 | "underline": false 188 | }, 189 | "DecVal": { 190 | "text-color": "#0000cf", 191 | "background-color": null, 192 | "bold": false, 193 | "italic": false, 194 | "underline": false 195 | }, 196 | "Keyword": { 197 | "text-color": "#204a87", 198 | "background-color": null, 199 | "bold": true, 200 | "italic": false, 201 | "underline": false 202 | } 203 | } 204 | } 205 | -------------------------------------------------------------------------------- /skylighting/themes/builtin-zenburn.theme: -------------------------------------------------------------------------------- 1 | { 2 | "text-color": "#cccccc", 3 | "background-color": "#303030", 4 | "line-number-color": null, 5 | "line-number-background-color": null, 6 | "text-styles": { 7 | "Other": { 8 | "text-color": "#efef8f", 9 | "background-color": null, 10 | "bold": false, 11 | "italic": false, 12 | "underline": false 13 | }, 14 | "Attribute": { 15 | "text-color": null, 16 | "background-color": null, 17 | "bold": false, 18 | "italic": false, 19 | "underline": false 20 | }, 21 | "SpecialString": { 22 | "text-color": "#cc9393", 23 | "background-color": null, 24 | "bold": false, 25 | "italic": false, 26 | "underline": false 27 | }, 28 | "Annotation": { 29 | "text-color": "#7f9f7f", 30 | "background-color": null, 31 | "bold": true, 32 | "italic": false, 33 | "underline": false 34 | }, 35 | "Function": { 36 | "text-color": "#efef8f", 37 | "background-color": null, 38 | "bold": false, 39 | "italic": false, 40 | "underline": false 41 | }, 42 | "String": { 43 | "text-color": "#cc9393", 44 | "background-color": null, 45 | "bold": false, 46 | "italic": false, 47 | "underline": false 48 | }, 49 | "ControlFlow": { 50 | "text-color": "#f0dfaf", 51 | "background-color": null, 52 | "bold": false, 53 | "italic": false, 54 | "underline": false 55 | }, 56 | "Operator": { 57 | "text-color": "#f0efd0", 58 | "background-color": null, 59 | "bold": false, 60 | "italic": false, 61 | "underline": false 62 | }, 63 | "Error": { 64 | "text-color": "#c3bf9f", 65 | "background-color": null, 66 | "bold": false, 67 | "italic": false, 68 | "underline": false 69 | }, 70 | "BaseN": { 71 | "text-color": "#dca3a3", 72 | "background-color": null, 73 | "bold": false, 74 | "italic": false, 75 | "underline": false 76 | }, 77 | "Alert": { 78 | "text-color": "#ffcfaf", 79 | "background-color": null, 80 | "bold": false, 81 | "italic": false, 82 | "underline": false 83 | }, 84 | "Variable": { 85 | "text-color": null, 86 | "background-color": null, 87 | "bold": false, 88 | "italic": false, 89 | "underline": false 90 | }, 91 | "BuiltIn": { 92 | "text-color": null, 93 | "background-color": null, 94 | "bold": false, 95 | "italic": false, 96 | "underline": false 97 | }, 98 | "Extension": { 99 | "text-color": null, 100 | "background-color": null, 101 | "bold": false, 102 | "italic": false, 103 | "underline": false 104 | }, 105 | "Preprocessor": { 106 | "text-color": "#ffcfaf", 107 | "background-color": null, 108 | "bold": true, 109 | "italic": false, 110 | "underline": false 111 | }, 112 | "Information": { 113 | "text-color": "#7f9f7f", 114 | "background-color": null, 115 | "bold": true, 116 | "italic": false, 117 | "underline": false 118 | }, 119 | "VerbatimString": { 120 | "text-color": "#cc9393", 121 | "background-color": null, 122 | "bold": false, 123 | "italic": false, 124 | "underline": false 125 | }, 126 | "Warning": { 127 | "text-color": "#7f9f7f", 128 | "background-color": null, 129 | "bold": true, 130 | "italic": false, 131 | "underline": false 132 | }, 133 | "Documentation": { 134 | "text-color": "#7f9f7f", 135 | "background-color": null, 136 | "bold": false, 137 | "italic": false, 138 | "underline": false 139 | }, 140 | "Import": { 141 | "text-color": null, 142 | "background-color": null, 143 | "bold": false, 144 | "italic": false, 145 | "underline": false 146 | }, 147 | "Char": { 148 | "text-color": "#dca3a3", 149 | "background-color": null, 150 | "bold": false, 151 | "italic": false, 152 | "underline": false 153 | }, 154 | "DataType": { 155 | "text-color": "#dfdfbf", 156 | "background-color": null, 157 | "bold": false, 158 | "italic": false, 159 | "underline": false 160 | }, 161 | "Float": { 162 | "text-color": "#c0bed1", 163 | "background-color": null, 164 | "bold": false, 165 | "italic": false, 166 | "underline": false 167 | }, 168 | "Comment": { 169 | "text-color": "#7f9f7f", 170 | "background-color": null, 171 | "bold": false, 172 | "italic": false, 173 | "underline": false 174 | }, 175 | "CommentVar": { 176 | "text-color": "#7f9f7f", 177 | "background-color": null, 178 | "bold": true, 179 | "italic": false, 180 | "underline": false 181 | }, 182 | "Constant": { 183 | "text-color": "#dca3a3", 184 | "background-color": null, 185 | "bold": true, 186 | "italic": false, 187 | "underline": false 188 | }, 189 | "SpecialChar": { 190 | "text-color": "#dca3a3", 191 | "background-color": null, 192 | "bold": false, 193 | "italic": false, 194 | "underline": false 195 | }, 196 | "DecVal": { 197 | "text-color": "#dcdccc", 198 | "background-color": null, 199 | "bold": false, 200 | "italic": false, 201 | "underline": false 202 | }, 203 | "Keyword": { 204 | "text-color": "#f0dfaf", 205 | "background-color": null, 206 | "bold": false, 207 | "italic": false, 208 | "underline": false 209 | } 210 | } 211 | } 212 | -------------------------------------------------------------------------------- /skylighting/themes/update.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # v1.0.0 | 2019/06/07 | pandoc 2.7.2 | by Tristano Ajmone (public domain) 4 | # ------------------------------------------------------------------------------ 5 | # This script will generate a Skylighting JSON Theme file for every highlight 6 | # style (theme) natively supported by pandoc. 7 | # Generated theme files follow this naming convention: 8 | # builtin-.theme 9 | # ------------------------------------------------------------------------------ 10 | echo -e "\e[94m================================" 11 | echo -e "\e[93mUpdating Skylighting JSON Themes" 12 | echo -e "\e[94m================================" 13 | 14 | pandoc --list-highlight-styles | grep -oP '\w+' | while read theme; do 15 | outFile="builtin-$theme.theme" 16 | echo -e "\e[0mUpdating theme: \e[94m$theme" 17 | pandoc -o $outFile --print-highlight-style=$theme 18 | done 19 | -------------------------------------------------------------------------------- /templates/html5/github/INSTALL.bat: -------------------------------------------------------------------------------- 1 | :: "INSTALL.bat" v1.0 (2017-04-13) by Tristano Ajmone. 2 | @ECHO OFF 3 | ECHO. 4 | ECHO ============================================================================== 5 | ECHO Install GitHub Pandoc HTML5 Template 6 | ECHO ============================================================================== 7 | SET "_DEST=%APPDATA%\Pandoc\templates\" 8 | ECHO This script will copy "GitHub.html5" to pandoc's default templates folder for 9 | ECHO the current user, so that it will be always available to pandoc: 10 | ECHO. 11 | ECHO %_DEST% 12 | ECHO. 13 | ECHO Any previous version of the file will be overwritten without confirmation. 14 | ECHO. 15 | :: Ask for confirmation. Defaults to NO after 20 sec timeout (time to read text). 16 | CHOICE /C NY /D N /T 20 /M "Do you wish to install the template" 17 | IF ERRORLEVEL 2 GOTO :DO_INSTALL 18 | ECHO. 19 | ECHO Installation aborted... 20 | EXIT /B 21 | 22 | :DO_INSTALL 23 | ECHO. 24 | :: NOTE: XCOPY will create the "templates" subfolder if not present. 25 | XCOPY /Y %~dp0GitHub.html5 %_DEST% 26 | EXIT /B -------------------------------------------------------------------------------- /templates/html5/github/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Tristano Ajmone, 2017-2020 (github.com/tajmone/pandoc-goodies) 4 | Copyright (c) Sindre Sorhus (sindresorhus.com) 5 | Copyright (c) 2017 GitHub Inc. 6 | 7 | "GitHub Pandoc HTML5 Template" is Copyright (c) Tristano Ajmone, 2017-2020, 8 | released under the MIT License (MIT); it contains readaptations of substantial 9 | portions of the following third party softwares: 10 | 11 | (1) "GitHub Markdown CSS", Copyright (c) Sindre Sorhus, MIT License (MIT). 12 | (2) "Primer CSS", Copyright (c) 2016 GitHub Inc., MIT License (MIT). 13 | 14 | Permission is hereby granted, free of charge, to any person obtaining a copy 15 | of this software and associated documentation files (the "Software"), to deal 16 | in the Software without restriction, including without limitation the rights 17 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 18 | copies of the Software, and to permit persons to whom the Software is 19 | furnished to do so, subject to the following conditions: 20 | 21 | The above copyright notice and this permission notice shall be included in all 22 | copies or substantial portions of the Software. 23 | 24 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 27 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 29 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 30 | SOFTWARE. 31 | -------------------------------------------------------------------------------- /templates/html5/github/TODO.md: -------------------------------------------------------------------------------- 1 | # GitHub Template TODO List 2 | 3 | Shopping list of features to add to GitHub template: 4 | 5 | - [ ] Incorporate GitHub's syntax coloring scheme readapted to pandoc's and Highlight tags (and suppress pandoc syntax theme in template)? 6 | - [ ] Add PP `!mark` macros for generating `` tag and color variations: 7 | - [ ] Implement CSS styles for extra `` an `` color-classes (span classes as an alternative to PP `!mark` macros, using pandoc spans syntax) 8 | - [ ] Add `$project$` template keyword to support extra header features: 9 | + [ ] Link to project's repo 10 | + [ ] Link to project's website 11 | + [ ] GitHub StarMe button 12 | + [ ] Icons-links (and link template-vars): 13 | * [ ] GitHub 14 | * [ ] Twitter 15 | * [ ] FaceBook 16 | 17 | -------------------------------------------------------------------------------- /templates/html5/github/src/BUILD-ALL.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | CALL TEMPLATE-BUILD.bat 3 | CALL PREVIEW-BUILD.bat 4 | -------------------------------------------------------------------------------- /templates/html5/github/src/GitHub.css.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sourceRoot":"","sources":["GitHub.scss","_github-markdown.scss","_alerts.scss","_pandoc.scss"],"names":[],"mappings":";AAOA;;AAAA;AAAA;AAAA;AAAA;ACgCA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;;AAEA;EAEE;;AAEF;EACE;;AAEF;EACE;EACA;;AAIJ;EACE;;AAMF;AAAA;AAAA;AAAA;AAAA;AAAA;EAME;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;EACA;;AAKF;EACE;;AAGF;EACE;;AAGF;AAAA;AAAA;EAGE;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACA;EACA;;AAGA;EACA;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;;AAGF;EACE;;AAMF;EACE;EACA;;AAGF;EACE;;AAMF;AAAA;EAEE;EACA;EACA;;AAEA;AAAA;EACE;;AAGF;AAAA;AAAA;AAAA;EAEE;EACA;;AAGF;AAAA;AAAA;AAAA;EAEE;;AAIJ;EACE;;AAGF;EACE;;AAOF;EACE;;AAGF;EACE;;AAEA;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;;AAOJ;EACE;EACA;;AAGF;EACE;EACA;EACA;;AAMF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAOE;EACA;;AAKF;EACE;EACA;EACA;;AAEA;EACE;;AAGF;EACE;;AAKJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAYF;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EAEE;EACA;;AAGF;EACE;EACA;;AAEA;EACE;;AAUN;EACE;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;AAAA;EAEE;EACA;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;;AAGF;EACE;EACA;;AAGF;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;AAAA;EAEE;;AAGF;EACE;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAMF;EACE;EACA;EACA;;AAGF;EACE;;AAEA;EACE;;AAGF;EACE;EACA;;AASJ;EACE;EACA;;AAIF;EACE;EACA;EACA;;AAIF;EACE;;AAIF;EACE;;;ACvbJ;AAAA;AAAA;AAAA;AAAA;EAKI;EACA;EACA;EACA;EACA;;AACA;AAAA;AAAA;AAAA;AAAA;EACI;;AAEA;AAAA;AAAA;AAAA;AAAA;EACI;;;AAKZ;EACI,OAhDkB;EAiDlB,kBAhDiB;EAiDjB,cAhDiB;;;AAkDrB;EACI,OAhDe;EAiDf,kBAhDiB;EAiDjB,cAhDkB;;;AAkDtB;EACI,OAhDgB;EAiDhB,kBAhDkB;EAiDlB,cAhDkB;;;AAkDtB;EACI,OAhDkB;EAiDlB,kBAhDgB;EAiDhB,cAhDkB;;;AAkDtB;EACI,OAhDe;EAiDf,kBAhDiB;EAiDjB,cAhDiB;;;AAuDrB;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI,OAnFkB;EAoFlB;;;AAEJ;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI,OAvFe;EAwFf;;;AAEJ;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI,OA3FgB;EA4FhB;;;AAEJ;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI,OA/FkB;EAgGlB;;;AAEJ;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI,OAnGe;EAoGf;;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI;;;AAEJ;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI;;;AAEJ;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI;;;AAEJ;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI;;;AAEJ;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI;;;AC5KJ;AAAA;EAEC;;;AAID;EACC;;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;;;AAQD;EACE","file":"GitHub.css"} -------------------------------------------------------------------------------- /templates/html5/github/src/GitHub.min.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8";.markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;color:#24292e;font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:16px;line-height:1.5;word-wrap:break-word;box-sizing:border-box;min-width:200px;max-width:980px;margin:0 auto;padding:45px}.markdown-body a{color:#0366d6;background-color:transparent;text-decoration:none;-webkit-text-decoration-skip:objects}.markdown-body a:active,.markdown-body a:hover{outline-width:0}.markdown-body a:hover{text-decoration:underline}.markdown-body a:not([href]){color:inherit;text-decoration:none}.markdown-body strong{font-weight:600}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.markdown-body h1{font-size:2em;margin:.67em 0;padding-bottom:.3em;border-bottom:1px solid #eaecef}.markdown-body h2{padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid #eaecef}.markdown-body h3{font-size:1.25em}.markdown-body h4{font-size:1em}.markdown-body h5{font-size:.875em}.markdown-body h6{font-size:.85em;color:#6a737d}.markdown-body img{border-style:none}.markdown-body svg:not(:root){overflow:hidden}.markdown-body hr{box-sizing:content-box;height:.25em;margin:24px 0;padding:0;overflow:hidden;background-color:#e1e4e8;border:0}.markdown-body hr::before{display:table;content:""}.markdown-body hr::after{display:table;clear:both;content:""}.markdown-body input{margin:0;overflow:visible;font:inherit;font-family:inherit;font-size:inherit;line-height:inherit}.markdown-body [type=checkbox]{box-sizing:border-box;padding:0}.markdown-body *{box-sizing:border-box}.markdown-body blockquote{margin:0}.markdown-body ol,.markdown-body ul{padding-left:2em}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman}.markdown-body ol ol,.markdown-body ol ul,.markdown-body ul ol,.markdown-body ul ul{margin-top:0;margin-bottom:0}.markdown-body ol ol ol,.markdown-body ol ul ol,.markdown-body ul ol ol,.markdown-body ul ul ol{list-style-type:lower-alpha}.markdown-body li>p{margin-top:16px}.markdown-body li+li{margin-top:.25em}.markdown-body dd{margin-left:0}.markdown-body dl{padding:0}.markdown-body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:600}.markdown-body dl dd{padding:0 16px;margin-bottom:16px}.markdown-body code{font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace}.markdown-body pre{font:12px SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;word-wrap:normal}.markdown-body blockquote,.markdown-body dl,.markdown-body ol,.markdown-body p,.markdown-body pre,.markdown-body table,.markdown-body ul{margin-top:0;margin-bottom:16px}.markdown-body blockquote{padding:0 1em;color:#6a737d;border-left:.25em solid #dfe2e5}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body table{display:block;width:100%;overflow:auto;border-spacing:0;border-collapse:collapse}.markdown-body table th{font-weight:600}.markdown-body table td,.markdown-body table th{padding:6px 13px;border:1px solid #dfe2e5}.markdown-body table tr{background-color:#fff;border-top:1px solid #c6cbd1}.markdown-body table tr:nth-child(2n){background-color:#f6f8fa}.markdown-body img{max-width:100%;box-sizing:content-box;background-color:#fff}.markdown-body code{padding:.2em 0;margin:0;font-size:85%;background-color:rgba(27,31,35,.05);border-radius:3px}.markdown-body code::after,.markdown-body code::before{letter-spacing:-.2em;content:" "}.markdown-body pre>code{padding:0;margin:0;font-size:100%;word-break:normal;white-space:pre;background:0 0;border:0}.markdown-body .highlight{margin-bottom:16px}.markdown-body .highlight pre{margin-bottom:0;word-break:normal}.markdown-body .highlight pre,.markdown-body pre{padding:16px;overflow:auto;font-size:85%;line-height:1.45;background-color:#f6f8fa;border-radius:3px}.markdown-body pre code{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.markdown-body pre code::after,.markdown-body pre code::before{content:normal}.markdown-body .full-commit .btn-outline:not(:disabled):hover{color:#005cc5;border-color:#005cc5}.markdown-body kbd{box-shadow:inset 0 -1px 0 #959da5;display:inline-block;padding:3px 5px;font:11px/10px SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;color:#444d56;vertical-align:middle;background-color:#fcfcfc;border:1px solid #c6cbd1;border-bottom-color:#959da5;border-radius:3px;box-shadow:inset 0 -1px 0 #959da5}.markdown-body :checked+.radio-label{position:relative;z-index:1;border-color:#0366d6}.markdown-body .task-list-item{list-style-type:none}.markdown-body .task-list-item+.task-list-item{margin-top:3px}.markdown-body .task-list-item input{margin:0 .2em .25em -1.6em;vertical-align:middle}.markdown-body::before{display:table;content:""}.markdown-body::after{display:table;clear:both;content:""}.markdown-body>:first-child{margin-top:0!important}.markdown-body>:last-child{margin-bottom:0!important}.Alert,.Error,.Note,.Success,.Warning{padding:11px;margin-bottom:24px;border-style:solid;border-width:1px;border-radius:4px}.Alert p,.Error p,.Note p,.Success p,.Warning p{margin-top:0}.Alert p:last-child,.Error p:last-child,.Note p:last-child,.Success p:last-child,.Warning p:last-child{margin-bottom:0}.Alert{color:#246;background-color:#e2eef9;border-color:#bac6d3}.Warning{color:#4c4a42;background-color:#fff9ea;border-color:#dfd8c2}.Error{color:#911;background-color:#fcdede;border-color:#d2b2b2}.Success{color:#22662c;background-color:#e2f9e5;border-color:#bad3be}.Note{color:#2f363d;background-color:#f6f8fa;border-color:#d5d8da}.Alert h1,.Alert h2,.Alert h3,.Alert h4,.Alert h5,.Alert h6{color:#246;margin-bottom:0}.Warning h1,.Warning h2,.Warning h3,.Warning h4,.Warning h5,.Warning h6{color:#4c4a42;margin-bottom:0}.Error h1,.Error h2,.Error h3,.Error h4,.Error h5,.Error h6{color:#911;margin-bottom:0}.Success h1,.Success h2,.Success h3,.Success h4,.Success h5,.Success h6{color:#22662c;margin-bottom:0}.Note h1,.Note h2,.Note h3,.Note h4,.Note h5,.Note h6{color:#2f363d;margin-bottom:0}.Alert h1:first-child,.Alert h2:first-child,.Alert h3:first-child,.Alert h4:first-child,.Alert h5:first-child,.Alert h6:first-child,.Error h1:first-child,.Error h2:first-child,.Error h3:first-child,.Error h4:first-child,.Error h5:first-child,.Error h6:first-child,.Note h1:first-child,.Note h2:first-child,.Note h3:first-child,.Note h4:first-child,.Note h5:first-child,.Note h6:first-child,.Success h1:first-child,.Success h2:first-child,.Success h3:first-child,.Success h4:first-child,.Success h5:first-child,.Success h6:first-child,.Warning h1:first-child,.Warning h2:first-child,.Warning h3:first-child,.Warning h4:first-child,.Warning h5:first-child,.Warning h6:first-child{margin-top:0}h1.title,p.subtitle{text-align:center}h1.title.followed-by-subtitle{margin-bottom:0}p.subtitle{font-size:1.5em;font-weight:600;line-height:1.25;margin-top:0;margin-bottom:16px;padding-bottom:.3em}div.line-block{white-space:pre-line} -------------------------------------------------------------------------------- /templates/html5/github/src/GitHub.scss: -------------------------------------------------------------------------------- 1 | // ****************************************************************************** 2 | // * * 3 | // * GitHub Pandoc HTML5 Template * 4 | // * * 5 | // * v2.1 | 2018/02/28 | pandoc v2.1.1 * 6 | // * * 7 | // ****************************************************************************** 8 | /* github-markdown.css -- MIT License: 9 | 10 | Copyright (c) 2017 Tristano Ajmone. 11 | Copyright (c) Sindre Sorhus (sindresorhus.com) 12 | Copyright (c) 2017 GitHub Inc. 13 | */ 14 | 15 | 16 | @import '_github-markdown.scss'; 17 | @import '_alerts.scss'; 18 | @import '_pandoc.scss'; // pandoc specific CSS 19 | -------------------------------------------------------------------------------- /templates/html5/github/src/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Tristano Ajmone, 2017-2020 (github.com/tajmone/pandoc-goodies) 4 | Copyright (c) Sindre Sorhus (sindresorhus.com) 5 | Copyright (c) 2017 GitHub Inc. 6 | 7 | "GitHub Pandoc HTML5 Template" is Copyright (c) Tristano Ajmone, 2017-2020, 8 | released under the MIT License (MIT); it contains readaptations of substantial 9 | portions of the following third party softwares: 10 | 11 | (1) "GitHub Markdown CSS", Copyright (c) Sindre Sorhus, MIT License (MIT). 12 | (2) "Primer CSS", Copyright (c) 2016 GitHub Inc., MIT License (MIT). 13 | 14 | Permission is hereby granted, free of charge, to any person obtaining a copy 15 | of this software and associated documentation files (the "Software"), to deal 16 | in the Software without restriction, including without limitation the rights 17 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 18 | copies of the Software, and to permit persons to whom the Software is 19 | furnished to do so, subject to the following conditions: 20 | 21 | The above copyright notice and this permission notice shall be included in all 22 | copies or substantial portions of the Software. 23 | 24 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 27 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 29 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 30 | SOFTWARE. 31 | -------------------------------------------------------------------------------- /templates/html5/github/src/PREVIEW-BUILD.bat: -------------------------------------------------------------------------------- 1 | :: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 2 | :: GitHub HTML5 Pandoc Template Preview builder v2.0 (2017-11-21) 3 | :: (c) Tristano Ajmone, 2017. MIT License (MIT). 4 | :: https://github.com/tajmone/pandoc-goodies 5 | :: ////////////////////////////////////////////////////////////////////////////// 6 | :: 7 | :: SCRIPT REQUIREMENTS: 8 | :: -- pandoc >= v2.0 must be available on the system %PATH%: 9 | :: http://pandoc.org 10 | :: -- pp >= v2.1.5 must be available on the system %PATH%: 11 | :: http://cdsoft.fr/pp/ 12 | :: ------------------------------------------------------------------------------ 13 | @ECHO OFF 14 | ECHO. 15 | ECHO ============================================================================== 16 | ECHO Building GitHub html5 template preview... 17 | ECHO ============================================================================== 18 | :: ============================================================================== 19 | :: CHECK SYSTEM REQUIREMENTS 20 | :: ============================================================================== 21 | :: Before starting to build, check that all required tools are available: 22 | :: ------------------------------------------------------------------------------ 23 | ECHO 1) Checking that system requirement are met. 24 | CALL pandoc -v >nul 2>&1 25 | IF ERRORLEVEL 1 ( 26 | ECHO ERROR! In order to execute this script, pandoc must be on the system %%PATH%%: 27 | ECHO. 28 | ECHO http://pandoc.org 29 | EXIT /B 30 | ) 31 | CALL pp -v >nul 2>&1 32 | IF ERRORLEVEL 1 ( 33 | ECHO ERROR! In order to execute this script, pp must be on the system %%PATH%%: 34 | ECHO. 35 | ECHO http://cdsoft.fr/pp/ 36 | EXIT /B 37 | ) 38 | :: ============================================================================== 39 | :: BUILD TEMPLATE PREVIEW 40 | :: ============================================================================== 41 | :: Initialize pp-macros environment variable %PP_MACROS_PATH%. 42 | :: ------------------------------------------------------------------------------ 43 | ECHO 2) Initalizing pp-macros environment. 44 | :: ------------------------------------------------------------------------------ 45 | :: Invoke pp on markdown source and pipe its output to pandoc. 46 | :: ------------------------------------------------------------------------------ 47 | CALL ..\..\..\..\pp\macros\INIT-ENV.bat 48 | ECHO 3) Invoking pp preprocessor and piping output to pandoc. 49 | pp -import %PP_MACROS_PATH%macros.pp ^ 50 | PREVIEW.md ^ 51 | | pandoc -f markdown ^ 52 | -t html5 ^ 53 | --standalone ^ 54 | --template=..\GitHub.html5 ^ 55 | --highlight-style=haddock ^ 56 | --toc ^ 57 | -o ..\GitHub-Template-Preview.html 58 | :: HIGHLIGHT-STYLES: 59 | :: pygments kate monochrome breezeDark espresso zenburn haddock tango 60 | :: ------------------------------------------------------------------------------ 61 | EXIT /B 62 | 63 | :: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 64 | :: CHANGELOG 65 | :: ////////////////////////////////////////////////////////////////////////////// 66 | :: v2.0 (2017-11-21) 67 | :: -- PP 2.1.5 | pandoc 2.0.2 68 | :: v1.0 (2017-04-08) 69 | :: -- First release. -------------------------------------------------------------------------------- /templates/html5/github/src/README.md: -------------------------------------------------------------------------------- 1 | # GitHub Pandoc HTML5 Template Source Files 2 | 3 | pandoc v2.1.1 | PP v2.1.5 4 | 5 | Here are the source files to build the GitHub template and the template preview example, plus some watch and build scripts to facilitate working with the sources. 6 | 7 | 8 | ----- 9 | 10 | **Table of Contents** 11 | 12 | 13 | 14 | 15 | - [Files List](#files-list) 16 | - [Build Instructions](#build-instructions) 17 | - [Requirements](#requirements) 18 | - [Building The Template](#building-the-template) 19 | - [Building The Template Preview](#building-the-template-preview) 20 | - [Editing Instructions](#editing-instructions) 21 | - [Editing The Template](#editing-the-template) 22 | - [Editing The Template Preview](#editing-the-template-preview) 23 | 24 | 25 | 26 | ----- 27 | 28 | 29 | # Files List 30 | 31 | - [`_alerts.scss`](./_alerts.scss) — Sass module 32 | - [`_github-markdown.scss`](./_github-markdown.scss) — Sass module 33 | - [`_pandoc.scss`](./_pandoc.scss) — Sass module 34 | - [`BUILD-ALL.bat`](./BUILD-ALL.bat) — launches `TEMPLATE-BUILD.bat` and `PREVIEW-BUILD.bat` 35 | - [`css-injector.js`](./css-injector.js) — injects CSS in template (used by `TEMPLATE-BUILD.bat`) 36 | - [`GitHub.css.map`](./GitHub.css.map) — CSS source map file (*autogenerated*) 37 | - [`GitHub.css`](./GitHub.css) — template stylesheet (*autogenerated*) 38 | - [`GitHub.min.css`](./GitHub.min.css) — template stylesheet minified (*autogenerated*) 39 | - [`GitHub.scss`](./GitHub.scss) — template's main Sass file that load all other SCSS modules. 40 | - [`GitHub_source.html5`](./GitHub_source.html5) — template source with placeholder string for CSS injection. 41 | - [`LICENSE`](./LICENSE) — MIT License text. 42 | - [`PREVIEW-BUILD.bat`](./PREVIEW-BUILD.bat) — builds `../GitHub-Template-Preview.html` 43 | - [`PREVIEW.md`](./PREVIEW.md) — source contents of `../GitHub-Template-Preview.html` 44 | - [`SASS-BUILD.bat`](./SASS-WATCH.bat) — force builds `GitHub.css` from `*.scss` source files. 45 | - [`SASS-WATCH.bat`](./SASS-WATCH.bat) — force builds `GitHub.css` and then watches `*.scss` files. 46 | - [`TEMPLATE-BUILD.bat`](./TEMPLATE-BUILD.bat) — builds `../GitHub.html5` 47 | - [`WATCH-ALL.bat`](./WATCH-ALL.bat) — rebuilds `../GitHub.html5` and `../GitHub-Template-Preview.html` if any source file changes. 48 | 49 | # Build Instructions 50 | 51 | The [`BUILD-ALL.bat`](./BUILD-ALL.bat) script will build/update both the template and the template preview example (in parent folder): 52 | 53 | - `../GitHub.html5` 54 | - `../GitHub-Template-Preview.html` 55 | 56 | ## Requirements 57 | 58 | Some scripts rely on the presence of third party tools on the system. In order to be able to build all the contents of this folder, you'll need: 59 | 60 | - [PP](http://cdsoft.fr/pp/) (version `>= 2.0`) 61 | - [pandoc](http://pandoc.org) (version `>= 2.0`) 62 | - [Sass](http://sass-lang.com/) (Dart) 63 | - [clean-css-cli](https://www.npmjs.com/package/clean-css-cli) (Node.js) 64 | - [multiwatch](https://www.npmjs.com/package/multiwatch) (Node.js) 65 | 66 | ## Building The Template 67 | 68 | To build the template launch [`TEMPLATE-BUILD.bat`](./TEMPLATE-BUILD.bat). This will: 69 | 70 | 1. Compile `GitHub.css` from Sass sources. 71 | 2. Minify `GitHub.css` to `GitHub.min.css`. 72 | 3. Load `GitHub_source.html5` into memory and inject the contents of `GitHub.min.css` over the `{{CSS-INJECT}}` placeholder string. 73 | 4. Save the final template with injected CSS to `../GitHub.html5` (parent folder). 74 | 75 | You can skip __Step-1__ (compiling CSS from Sass) by passing the "`--no-sass`" option: 76 | 77 | ``` 78 | TEMPLATE-BUILD --no-sass 79 | ``` 80 | 81 | ... this is useful if you are not editing the `*.scss` sources, or don't have Sass on your system. (It's also required to prevent a vicious circle in `WATCH-ALL.bat`) 82 | 83 | ## Building The Template Preview 84 | 85 | To build the template preview example launch [`PREVIEW-BUILD.bat`](./PREVIEW-BUILD.bat). This will: 86 | 87 | 1. Invoke `..\..\..\..\pp\macros\INIT-ENV.bat` to initialize the env vars of the PP Macros library. 88 | 2. Invoke PP to preprocess `PREVIEW.md`. 89 | 3. Pipe the preprocessed markdown to pandoc for HTML conversion. 90 | 4. Save the final HTML document to `../GitHub-Template-Preview.html` (parent folder). 91 | 92 | # Editing Instructions 93 | 94 | The [`WATCH-ALL.bat`](./WATCH-ALL.bat) script will watch for any changes in source files affecting both the template and its preview example, when file changes are detected it will automatically rebuild the template and/or the template preview. 95 | 96 | ## Editing The Template 97 | 98 | These are the editable source files of the pandoc HTML5 template: 99 | 100 | - [`GitHub_source.html5`](./GitHub_source.html5) 101 | 102 | And these are the Sass source files of the CSS stylesheet: 103 | 104 | - [`GitHub.scss`](./GitHub.scss) 105 | - [`_alerts.scss`](./_alerts.scss) 106 | - [`_github-markdown.scss`](./_github-markdown.scss) 107 | - [`_pandoc.scss`](./_pandoc.scss) 108 | 109 | All other template files are autogenerated by scripts. 110 | 111 | ## Editing The Template Preview 112 | 113 | These are the editable source files of the template preview file: 114 | 115 | - [`PREVIEW.md`](./PREVIEW.md) 116 | 117 | 118 | -------------------------------------------------------------------------------- /templates/html5/github/src/SASS-BUILD.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | ECHO. 3 | ECHO ============================================================================== 4 | ECHO Building GitHub.css from Sass sources 5 | ECHO ============================================================================== 6 | ECHO 1) Force building SASS project... 7 | ECHO. 8 | CALL SASS --source-map --style=expanded .\GitHub.scss:.\GitHub.css 9 | EXIT /B 10 | 11 | -------------------------------------------------------------------------------- /templates/html5/github/src/SASS-WATCH.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | ECHO. 3 | ECHO 1) Force building SASS project... 4 | ECHO. 5 | CALL SASS --source-map --style=expanded .\GitHub.scss:.\GitHub.css 6 | ECHO. 7 | ECHO ------------------------------------------------------------------------------ 8 | ECHO 2) Watching SASS project... 9 | ECHO. 10 | CALL SASS --source-map --style=expanded --watch .\GitHub.scss:.\GitHub.css 11 | EXIT /B 12 | -------------------------------------------------------------------------------- /templates/html5/github/src/TEMPLATE-BUILD.bat: -------------------------------------------------------------------------------- 1 | :: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 2 | :: GitHub HTML5 Pandoc Template builder v2.0 (2017-11-21) 3 | :: (c) Tristano Ajmone, 2017. MIT License (MIT). 4 | :: https://github.com/tajmone/pandoc-goodies 5 | :: ////////////////////////////////////////////////////////////////////////////// 6 | :: 7 | :: Invoke with "--no-sass" to skip build-css step. 8 | :: 9 | :: SCRIPT REQUIREMENTS: 10 | :: -- clean-css-cli v. >= 4.1 (Node.js), installed locally or globally): 11 | :: https://www.npmjs.com/package/clean-css-cli 12 | :: https://github.com/jakubpawlowicz/clean-css-cli 13 | :: ------------------------------------------------------------------------------ 14 | @ECHO OFF 15 | ECHO. 16 | ECHO ============================================================================== 17 | ECHO Building GitHub html5 pandoc template... 18 | ECHO ============================================================================== 19 | :: Check if "--no-sass" option was used: 20 | IF "%~1"=="--no-sass" ( 21 | ECHO "--no-sass" option: CSS creation from Sass will be skipped 22 | ECHO. 23 | ) 24 | :: Create steps counter var: 25 | SET _STEP=1 26 | :: ============================================================================== 27 | :: CHECK SYSTEM REQUIREMENTS 28 | :: ============================================================================== 29 | :: Before starting to build, check that all required tools are available: 30 | :: ------------------------------------------------------------------------------ 31 | ECHO %_STEP%) Checking that system requirement are met. 32 | CALL cleancss -v >nul 2>&1 33 | IF ERRORLEVEL 1 ( 34 | ECHO ERROR! In order to execute this script, you must install clean-css-cli: 35 | ECHO. 36 | ECHO https://www.npmjs.com/package/clean-css-cli 37 | EXIT /B 38 | ) 39 | SET /A _STEP+=1 40 | :: ============================================================================== 41 | :: BUILD CSS FROM SASS SOURCES 42 | :: ============================================================================== 43 | :: Check if "--no-sass" option was used: 44 | IF "%~1"=="--no-sass" GOTO :MINIFY 45 | ECHO %_STEP%) Creating CSS file from Sass sources. 46 | CALL SASS-BUILD.bat 1>nul 47 | SET /A _STEP+=1 48 | :: ============================================================================== 49 | :: BUILD MINIFIED CSS 50 | :: ============================================================================== 51 | :: Build a minified and optimized CSS files from multiple sources. 52 | :: ------------------------------------------------------------------------------ 53 | :MINIFY 54 | ECHO %_STEP%) Minifying CSS file. 55 | CALL cleancss -O2 ^ 56 | GitHub.css ^ 57 | -o GitHub.min.css 58 | SET /A _STEP+=1 59 | :: ============================================================================== 60 | :: BUILD HTML5 TEMPLATE 61 | :: ============================================================================== 62 | :: The final template is created via a Node.js script that injects the minified 63 | :: CSS file into a placholder string ("{{CSS-INJECT}}") in the template's template 64 | :: file ("sourceGitHub.html5") and then writes to file the final template. 65 | :: ------------------------------------------------------------------------------ 66 | ECHO %_STEP%) Injecting minified CSS into template source file. 67 | CALL NODE css-injector.js 68 | :: ------------------------------------------------------------------------------ 69 | EXIT /B 70 | 71 | :: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 72 | :: CHANGELOG 73 | :: ////////////////////////////////////////////////////////////////////////////// 74 | :: v2.0 (2017-11-21) 75 | :: -- Inject CSS-file into "GitHub_source.html5" via "TEMPLATE-INJECT-CSS.js" 76 | :: script (Node.js) instead of joining multiple split files. 77 | :: -- Also compiles CSS from Sass sources. 78 | :: -- Sass to CSS compilation step can be skipped via "--no-sass" parameter. 79 | :: v1.0 (2017-04-08) 80 | :: -- First release. -------------------------------------------------------------------------------- /templates/html5/github/src/WATCH-ALL.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | ECHO ============================================================================== 3 | ECHO WATCH ALL SCRIPT 4 | ECHO ============================================================================== 5 | :: "WATCH-ALL.bat" v1.0 | 2017/11/20 | by Tristano Ajmone 6 | :: ------------------------------------------------------------------------------ 7 | :: SCRIPT REQUIREMENTS: 8 | :: -- multiwatch (Node.js) 9 | :: https://www.npmjs.com/package/multiwatch 10 | :: ============================================================================== 11 | :: WATCH SASS 12 | :: ============================================================================== 13 | :: Launch in another CMD window "SASS-WATCH.bat" script which will: 14 | :: 1. Force compile the SCSS source files. 15 | :: 2. Watch the SCSS source files and recompile them if they change. 16 | :: ------------------------------------------------------------------------------ 17 | START "SASS WATCH" CMD /C SASS-WATCH.bat 18 | :: ============================================================================== 19 | :: WATCH TEMPLATE AND PREVIEW DOC 20 | :: ============================================================================== 21 | :: Invoke multiwatch to watch the template source files and the template-preview 22 | :: files, and launch the required build script if any file changes are detected. 23 | :: ------------------------------------------------------------------------------ 24 | multiwatch GitHub.css ^ 25 | GitHub_source.html5 ^ 26 | --execute "TEMPLATE-BUILD.bat --no-sass" ^ 27 | ..\GitHub.html5 ^ 28 | PREVIEW.md ^ 29 | --execute "PREVIEW-BUILD.bat" 30 | :: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 31 | :: CHANGELOG 32 | :: ////////////////////////////////////////////////////////////////////////////// 33 | :: v1.0 (2017-11-20) 34 | :: -- First release. 35 | -------------------------------------------------------------------------------- /templates/html5/github/src/_alerts.scss: -------------------------------------------------------------------------------- 1 | // ============================================================================== 2 | // ALERTS 3 | // ============================================================================== 4 | // This file was freely adapted from the Primer CSS project by GitHub Inc.: 5 | // 6 | // -- https://github.com/primer/primer-css/blob/master/modules/primer-alerts/lib/flash.scss 7 | // 8 | // Copyright (c) 2016 GitHub Inc. Released under The MIT License (MIT). 9 | // ============================================================================== 10 | 11 | // ------------------------------------------------------------------------------ 12 | // Alerts Color Palette 13 | // ------------------------------------------------------------------------------ 14 | // These colors are from the older GitHub color scheme (the new Alerts are too 15 | // bright for my tastes, I preferr the older colors which are most pastel-like) 16 | // The gray tones of '.Note' (which isn't part of Primer's Alerts) were added 17 | // by me, using Primer's color scheme as a reference. 18 | 19 | // Alert (Default) » Blue 20 | $Alert-Text: #224466; 21 | $Alert-BG: #E2EEF9; 22 | $Alert-Border: #BAC6D3; 23 | 24 | // Alert Warn » Yellow 25 | $AlertWarn-Text: #4C4A42; 26 | $AlertWarn-BG: #FFF9EA; 27 | $AlertWarn-Border: #DFD8C2; 28 | 29 | // Alert Error » Red 30 | $AlertError-Text: #991111; 31 | $AlertError-BG: #FCDEDE; 32 | $AlertError-Border: #D2B2B2; 33 | 34 | // Alert Success » Green 35 | $AlertSuccess-Text: #22662C; 36 | $AlertSuccess-BG: #E2F9E5; 37 | $AlertSuccess-Border: #BAD3BE; 38 | 39 | // Alert Note » Gray (not part of Primer CSS) 40 | $AlertNote-Text: #2F363D; 41 | $AlertNote-BG: #F6F8FA; 42 | $AlertNote-Border: #D5D8DA; 43 | 44 | // ------------------------------------------------------------------------------ 45 | 46 | // NOTE: baseline is 24px 47 | 48 | .Alert, 49 | .Warning, 50 | .Error, 51 | .Success, 52 | .Note { 53 | padding: 11px; 54 | margin-bottom: 24px; 55 | border-style: solid; 56 | border-width: 1px; 57 | border-radius: 4px; 58 | p { 59 | margin-top: 0; 60 | 61 | &:last-child { 62 | margin-bottom: 0; 63 | } 64 | } 65 | } 66 | 67 | .Alert { 68 | color: $Alert-Text; 69 | background-color: $Alert-BG; 70 | border-color: $Alert-Border; 71 | } 72 | .Warning { 73 | color: $AlertWarn-Text; 74 | background-color: $AlertWarn-BG; 75 | border-color: $AlertWarn-Border; 76 | } 77 | .Error { 78 | color: $AlertError-Text; 79 | background-color: $AlertError-BG; 80 | border-color: $AlertError-Border; 81 | } 82 | .Success { 83 | color: $AlertSuccess-Text; 84 | background-color: $AlertSuccess-BG; 85 | border-color: $AlertSuccess-Border; 86 | } 87 | .Note { 88 | color: $AlertNote-Text; 89 | background-color: $AlertNote-BG; 90 | border-color: $AlertNote-Border; 91 | } 92 | 93 | // ============================================================================== 94 | // Headings 1-6 Inside Alerts 95 | // ============================================================================== 96 | // ALL HEADINGS: Set right Alert color, and remove margin: 97 | .Alert h1, 98 | .Alert h2, 99 | .Alert h3, 100 | .Alert h4, 101 | .Alert h5, 102 | .Alert h6 { 103 | color: $Alert-Text; 104 | margin-bottom: 0; 105 | } 106 | .Warning h1, 107 | .Warning h2, 108 | .Warning h3, 109 | .Warning h4, 110 | .Warning h5, 111 | .Warning h6 { 112 | color: $AlertWarn-Text; 113 | margin-bottom: 0; 114 | } 115 | .Error h1, 116 | .Error h2, 117 | .Error h3, 118 | .Error h4, 119 | .Error h5, 120 | .Error h6 { 121 | color: $AlertError-Text; 122 | margin-bottom: 0; 123 | } 124 | .Success h1, 125 | .Success h2, 126 | .Success h3, 127 | .Success h4, 128 | .Success h5, 129 | .Success h6 { 130 | color: $AlertSuccess-Text; 131 | margin-bottom: 0; 132 | } 133 | .Note h1, 134 | .Note h2, 135 | .Note h3, 136 | .Note h4, 137 | .Note h5, 138 | .Note h6 { 139 | color: $AlertNote-Text; 140 | margin-bottom: 0; 141 | } 142 | // ------------------------------------------------------------------------------ 143 | // 1st HEADINGS: Remove top margin in first H1-6 occuring inside Alerts: 144 | .Alert h1:first-child, 145 | .Alert h2:first-child, 146 | .Alert h3:first-child, 147 | .Alert h4:first-child, 148 | .Alert h5:first-child, 149 | .Alert h6:first-child { 150 | margin-top: 0; 151 | } 152 | .Warning h1:first-child, 153 | .Warning h2:first-child, 154 | .Warning h3:first-child, 155 | .Warning h4:first-child, 156 | .Warning h5:first-child, 157 | .Warning h6:first-child { 158 | margin-top: 0; 159 | } 160 | .Error h1:first-child, 161 | .Error h2:first-child, 162 | .Error h3:first-child, 163 | .Error h4:first-child, 164 | .Error h5:first-child, 165 | .Error h6:first-child { 166 | margin-top: 0; 167 | } 168 | .Success h1:first-child, 169 | .Success h2:first-child, 170 | .Success h3:first-child, 171 | .Success h4:first-child, 172 | .Success h5:first-child, 173 | .Success h6:first-child { 174 | margin-top: 0; 175 | } 176 | .Note h1:first-child, 177 | .Note h2:first-child, 178 | .Note h3:first-child, 179 | .Note h4:first-child, 180 | .Note h5:first-child, 181 | .Note h6:first-child { 182 | margin-top: 0; 183 | } -------------------------------------------------------------------------------- /templates/html5/github/src/_pandoc.scss: -------------------------------------------------------------------------------- 1 | // ****************************************************************************** 2 | // * * 3 | // * Pandoc-Specific Styles * 4 | // * * 5 | // ****************************************************************************** 6 | 7 | // ------------------------------------------------------------------------------ 8 | // Title & Subtitle 9 | // ------------------------------------------------------------------------------ 10 | h1.title, 11 | p.subtitle { 12 | text-align: center; 13 | } 14 | 15 | // If Title is followed by a Subtitle set Title margin-bottom to "0" 16 | h1.title.followed-by-subtitle { 17 | margin-bottom: 0; 18 | } 19 | 20 | p.subtitle { 21 | font-size: 1.5em; 22 | font-weight: 600; 23 | line-height: 1.25; 24 | margin-top: 0; 25 | margin-bottom: 16px; 26 | padding-bottom: 0.3em; 27 | } 28 | 29 | // ------------------------------------------------------------------------------ 30 | // Pandoc Line blocks 31 | // ------------------------------------------------------------------------------ 32 | // As of v2.x pandoc no longer adds inline CSS to Line blocks, but relies on the 33 | // "line-block" class instead: 34 | div.line-block { 35 | white-space: pre-line; 36 | } -------------------------------------------------------------------------------- /templates/html5/github/src/css-injector.js: -------------------------------------------------------------------------------- 1 | /* 2 | \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 3 | GitHub HTML5 Pandoc Template: Inject CSS v1.0 (2017-11-21) 4 | (c) Tristano Ajmone, 2017. MIT License (MIT). 5 | https://github.com/tajmone/pandoc-goodies 6 | ////////////////////////////////////////////////////////////////////////////// 7 | 8 | This script will: 9 | 10 | 1. Load the given template source file, which contains a placeholder string 11 | indicating where to inject the CSS contents; 12 | 2. Load the contents of the given CSS file in memory; 13 | 3. Replace the placeholder string with the CSS contents (inject them); 14 | 4. Save the final result to the given destination file. 15 | 16 | */ 17 | 18 | templateFile = "GitHub_source.html5" // Template with CSS-injection placeholder 19 | cssFile = "GitHub.min.css" // CSS source to inject into placeholder 20 | outFile = "../GitHub.html5" // Final template output file 21 | placeHolder = "{{CSS-INJECT}}" // Placeholder string for CSS-injection 22 | 23 | var fs = require('fs') 24 | // ------------------------------------------------------------------------------ 25 | // Load CSS Into Var 26 | // ------------------------------------------------------------------------------ 27 | try { 28 | var CSS = fs.readFileSync(cssFile, 'utf8'); 29 | } catch(e) { 30 | console.log('Error:', e.stack); 31 | process.exit(1); 32 | } 33 | // ------------------------------------------------------------------------------ 34 | // Load Template Into Var 35 | // ------------------------------------------------------------------------------ 36 | try { 37 | var Template = fs.readFileSync(templateFile, 'utf8'); 38 | } catch(e) { 39 | console.log('Error:', e.stack); 40 | process.exit(1); 41 | } 42 | // ------------------------------------------------------------------------------ 43 | // Inject CSS Into Template 44 | // ------------------------------------------------------------------------------ 45 | Template = Template.replace(placeHolder, CSS); 46 | // var result = Template.replace(placeHolder, CSS); 47 | 48 | try { 49 | fs.writeFileSync(outFile, Template, 'utf8'); 50 | } catch(e) { 51 | console.log('Error:', e.stack); 52 | process.exit(1); 53 | } 54 | 55 | 56 | 57 | --------------------------------------------------------------------------------