mirror of
https://github.com/danbulant/design
synced 2026-07-07 03:51:02 +00:00
remove unnecesary console log
This commit is contained in:
parent
d021622432
commit
339b229003
1 changed files with 0 additions and 3 deletions
|
|
@ -2,7 +2,6 @@ import { visit } from "unist-util-visit"
|
||||||
|
|
||||||
export function remarkUnescapeHighlight() {
|
export function remarkUnescapeHighlight() {
|
||||||
return (tree, file) => {
|
return (tree, file) => {
|
||||||
console.log(1, file.filename, tree);
|
|
||||||
visit(tree, ["code"], (node) => {
|
visit(tree, ["code"], (node) => {
|
||||||
node.value = node.value
|
node.value = node.value
|
||||||
.replace(/{/g, "{")
|
.replace(/{/g, "{")
|
||||||
|
|
@ -22,7 +21,6 @@ export function remarkUnescapeHighlight() {
|
||||||
|
|
||||||
export function remarkEscapeInlineCode() {
|
export function remarkEscapeInlineCode() {
|
||||||
return (tree, file) => {
|
return (tree, file) => {
|
||||||
console.log(2, file.filename, tree);
|
|
||||||
visit(tree, ["inlineCode"], (node) => {
|
visit(tree, ["inlineCode"], (node) => {
|
||||||
node.value = node.value
|
node.value = node.value
|
||||||
.replace(/{/g, "{")
|
.replace(/{/g, "{")
|
||||||
|
|
@ -61,7 +59,6 @@ export function rehypeEscapeHighlight() {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (tree, file) => {
|
return (tree, file) => {
|
||||||
console.log(3, file.filename, tree);
|
|
||||||
visit(tree);
|
visit(tree);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue