Skip to content

Commit

Permalink
remove unused func
Browse files Browse the repository at this point in the history
  • Loading branch information
martenmatrix committed Apr 17, 2024
1 parent 74a289b commit aee896a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/components/GitHubMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,6 @@ function fixBrokenLinks() {
}
fixBrokenLinks();

// Custom rehype plugin to remove <img> tags
function rehypeRemoveImages() {
return (tree) => {
visit(tree, { tagName: 'img' }, (node, index, parent) => {
if (parent) {
parent.children.splice(index, 1);
}
});
};
}
function GitHubMarkdown({ children }) {
// Remark plugins to transform emojis is passed into rehypePlugins array => ids need to be created before github emojis are parsed, otherwise toc will not work
return <ReactMarkdown className="markdown-body" remarkPlugins={[supportGFM, makeEmojisAccessible, [removeHeading, {heading: ''}]]} rehypePlugins={[addIdToHeadings, parseGitHubEmojis, parseHTML, sanitizeHTML]}>{children}</ReactMarkdown>
Expand Down

0 comments on commit aee896a

Please sign in to comment.