Skip to content

Commit

Permalink
enable emoji on website; enable normal ul elements
Browse files Browse the repository at this point in the history
grouped these together:

- Site can now use emoji :party:
- Using the `.single-column` class will render a `ul` element as a "normal" list
- Suppress the warning about `text` being an unknown language coming out of 11ty/Prism/markdown-it

Ref: #4198
  • Loading branch information
boneskull committed Apr 21, 2020
1 parent 38d579a commit 815564b
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .eleventy.js
Expand Up @@ -31,6 +31,8 @@ module.exports = function(eleventyConfig) {

markdown.use(require('markdown-it-prism'));

markdown.use(require('markdown-it-emoji'));

eleventyConfig.setLibrary('md', markdown);

return {
Expand Down
3 changes: 2 additions & 1 deletion .markdownlint.json
Expand Up @@ -6,5 +6,6 @@
"first-header-h1": false,
"first-line-h1": false,
"commands-show-output": false,
"single-h1": false
"single-h1": false,
"fenced-code-language": false
}
18 changes: 18 additions & 0 deletions docs/css/style.css
Expand Up @@ -171,6 +171,13 @@ ul {
padding: 0 15px;
}

ul.single-column,
ul.single-column > li > ul {
column-count: 1;
margin-top: 0;
padding-right: 0;
}

ul li {
border-bottom: 1px solid #eee;
break-inside: avoid;
Expand All @@ -179,6 +186,17 @@ ul li {
padding: 5px 0;
}

ul.single-column li,
ul.single-column li > ul > li {
list-style: disc;
padding: 0;
border-bottom: 0;
}

ul.single-column li > ul > li {
list-style: circle;
}

code {
font: 14px monaco, monospace;
line-height: 1.8;
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -102,6 +102,7 @@
"markdown-it": "^10.0.0",
"markdown-it-anchor": "^5.2.5",
"markdown-it-attrs": "^3.0.2",
"markdown-it-emoji": "^1.4.0",
"markdown-it-prism": "^2.0.5",
"markdown-magic": "^1.0.0",
"markdown-magic-package-json": "^2.0.1",
Expand Down
2 changes: 1 addition & 1 deletion scripts/markdown-magic.config.js
Expand Up @@ -20,7 +20,7 @@ exports.transforms = {
usage: (content, options) => {
const {executable} = options;
const flag = options.flag || '--help';
const header = options.header || '\n```text';
const header = options.header || '\n```';
const footer = options.footer || '```\n';
const output = stripAnsi(
String(
Expand Down

0 comments on commit 815564b

Please sign in to comment.