chore: Remove unused variables

This commit is contained in:
Sidharth Vinod
2024-06-30 01:45:14 +05:30
parent f1bd8fa91b
commit 13bba48e92
19 changed files with 33 additions and 72 deletions

View File

@@ -241,7 +241,7 @@ export function transformMarkdownAst({
addEditLink,
removeYAML,
}: TransformMarkdownAstOptions) {
return (tree: Root, _file?: any): Root => {
return (tree: Root): Root => {
const astWithTransformedBlocks = flatmap(tree, (node: Code) => {
if (node.type !== 'code' || !node.lang) {
return [node]; // no transformation if this is not a code block