chore: remove unused plugin and lerna package (#41258)

This commit is contained in:
Oliver Eyton-Williams
2021-02-25 15:38:45 +01:00
committed by GitHub
parent b73022c81b
commit 24209a3629
5 changed files with 1 additions and 68 deletions

View File

@ -56,37 +56,7 @@ module.exports = {
}
},
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: [
'gatsby-remark-fcc-forum-emoji',
{
resolve: 'gatsby-remark-prismjs',
options: {
// Class prefix for <pre> tags containing syntax highlighting;
// defaults to 'language-' (eg <pre class="language-js">).
// If your site loads Prism into the browser at runtime,
// (eg for use with libraries like react-live),
// you may use this to prevent Prism from re-processing syntax.
// This is an uncommon use-case though;
// If you're unsure, it's best to use the default value.
classPrefix: 'language-',
// This is used to allow setting a language for inline code
// (i.e. single backticks) by creating a separator.
// This separator is a string and will do no white-space
// stripping.
// A suggested value for English speakers is the non-ascii
// character ''.
inlineCodeMarker: null,
// This lets you set up language aliases. For example,
// setting this to '{ sh: "bash" }' will let you use
// the language "sh" which will highlight using the
// bash highlighter.
aliases: {}
}
}
]
}
resolve: 'gatsby-transformer-remark'
},
{
resolve: 'gatsby-remark-node-identity',

View File

@ -1,26 +0,0 @@
const visit = require('unist-util-visit');
const emojiRE = /^:[a-z_]+:$/;
function markdownToHTML(node) {
const { url, title, alt } = node;
const html = `
<img
alt="${alt}"
class="forum-image"
src="${url}"
title="${title}"
>
`;
return Object.assign(node, {
type: 'html',
value: html
});
}
module.exports = function forumEmojiPlugin({ markdownAST }) {
visit(markdownAST, 'image', imageNode =>
emojiRE.test(imageNode.title) ? markdownToHTML(imageNode) : imageNode
);
};

View File

@ -1,5 +0,0 @@
{
"name": "gatsby-remark-fcc-forum-emoji",
"version": "0.0.1",
"lockfileVersion": 1
}

View File

@ -1,5 +0,0 @@
{
"name": "gatsby-remark-fcc-forum-emoji",
"private": true,
"version": "0.0.1"
}

View File

@ -8,7 +8,6 @@
"tools/challenge-parser/parser",
"tools/scripts/seed",
"tools/scripts/build",
"tools/formatter",
"tools/challenge-helper-scripts"
],
"version": "independent"