Skip to content

Commit

Permalink
fix: address PR review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueSlug committed May 16, 2022
1 parent d7e0257 commit 8137894
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 843 deletions.
10 changes: 4 additions & 6 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ var githubSlugify = function (string) {
return slugger.slug(string);
};

const fs = require("fs");

const fluidPlugin = require("eleventy-plugin-fluid");
const fs = require("fs");
const { EleventyRenderPlugin } = require("@11ty/eleventy");
const MarkdownIt = require("markdown-it");
const navigationPlugin = require("@11ty/eleventy-navigation");
Expand All @@ -47,8 +46,7 @@ module.exports = function (config) {
return md.render(content);
});

var markdownItAnchor = require("markdown-it-anchor");
var markdownItLibrary = md.use(markdownItAnchor, { slugify: githubSlugify });
var markdownItLibrary = md.use(require("markdown-it-anchor"), { slugify: githubSlugify });

config.setLibrary("md", markdownItLibrary);

Expand Down Expand Up @@ -79,8 +77,8 @@ module.exports = function (config) {
return getResourceLinks(content, sideContentHeadings, lang);
});

config.addShortcode("article_contents", (content, summary, headingsSelector) => {
return getArticleContents(content, summary, headingsSelector);
config.addShortcode("article_contents", (content, summary, headingsSelector, containerCssClass) => {
return getArticleContents(content, summary, headingsSelector, containerCssClass);
});

/*
Expand Down
Loading

0 comments on commit 8137894

Please sign in to comment.