Yuki Takei 3 лет назад
Родитель
Сommit
108d750ad9

+ 1 - 1
packages/remark-growi-plugin/src/mdast-util-growi-plugin/complex-types.d.ts

@@ -1,4 +1,4 @@
-import type { PhrasingContent, BlockContent } from 'mdast';
+import type { PhrasingContent } from 'mdast';
 import type { Parent } from 'unist';
 
 type DirectiveAttributes = Record<string, string>

+ 0 - 1
packages/remark-growi-plugin/src/mdast-util-growi-plugin/index.js

@@ -19,7 +19,6 @@ import { containerPhrasing } from 'mdast-util-to-markdown/lib/util/container-phr
 import { track } from 'mdast-util-to-markdown/lib/util/track.js';
 import { parseEntities } from 'parse-entities';
 import { stringifyEntitiesLight } from 'stringify-entities';
-import { visitParents } from 'unist-util-visit-parents';
 
 const own = {}.hasOwnProperty;
 

+ 0 - 63
packages/remark-growi-plugin/test/fixtures/leaf/actual.ts

@@ -1,63 +0,0 @@
-{ type: 'root', children: [
-    { type: 'leafGrowiPluginDirective',
-    name: 'a', attributes: {}, children: [], position: { start: { line: 1, column: 1, offset: 0
-        }, end: { line: 1, column: 3, offset: 2
-        }
-      }
-    },
-    { type: 'leafGrowiPluginDirective', name: 'a', attributes: {}, children: [
-        { type: 'text', value: 'b', position: [Object
-          ]
-        }
-      ], position: { start: { line: 3, column: 1, offset: 4
-        }, end: { line: 3, column: 6, offset: 9
-        }
-      }
-    },
-    { type: 'leafGrowiPluginDirective', name: 'a', attributes: { b: ''
-      }, children: [], position: { start: { line: 5, column: 1, offset: 11
-        }, end: { line: 5, column: 6, offset: 16
-        }
-      }
-    },
-    { type: 'leafGrowiPluginDirective', name: 'a', attributes: { c: ''
-      }, children: [
-        { type: 'text', value: 'b', position: [Object
-          ]
-        }
-      ], position: { start: { line: 7, column: 1, offset: 18
-        }, end: { line: 7, column: 9, offset: 26
-        }
-      }
-    },
-    { type: 'leafGrowiPluginDirective', name: 'a', attributes: {}, children: [
-        { type: 'text', value: 'b ', position: [Object
-          ]
-        },
-        { type: 'emphasis', children: [Array
-          ], position: [Object
-          ]
-        },
-        { type: 'text', value: ' d ', position: [Object
-          ]
-        },
-        { type: 'strong', children: [Array
-          ], position: [Object
-          ]
-        }
-      ], position: { start: { line: 9, column: 1, offset: 28
-        }, end: { line: 9, column: 18, offset: 45
-        }
-      }
-    },
-    { type: 'leafGrowiPluginDirective', name: 'a', attributes: { id: 'e', class: 'c d f g', h: 'i & j k'
-      }, children: [], position: { start: { line: 11, column: 1, offset: 47
-        }, end: { line: 11, column: 44, offset: 90
-        }
-      }
-    }
-  ], position: { start: { line: 1, column: 1, offset: 0
-    }, end: { line: 12, column: 1, offset: 91
-    }
-  }
-}