Skip to content

Commit

Permalink
feat: add support for syntax highlighting within includes
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonadkison committed Jan 31, 2021
1 parent a561c35 commit 539bb29
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"lunr": "^2.3.9",
"markdown-it": "^12.0.3",
"markdown-it-anchor": "^7.0.0",
"markdown-it-prism": "^2.1.4",
"sass": "^1.30.0",
"shelljs": "^0.8.4"
},
Expand Down
2 changes: 2 additions & 0 deletions source/index.11tydata.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

const cheerio = require('cheerio');
const markdownItAnchor = require('markdown-it-anchor');
const markdownItPrism = require('markdown-it-prism');
const markdown = require('markdown-it')({
html: true,
linkify: true,
typographer: true
}).use(markdownItAnchor, {})
.use(markdownItPrism)

function language_array(language_tabs) {
let result = [];
Expand Down

0 comments on commit 539bb29

Please sign in to comment.