reiji-h пре 1 година
родитељ
комит
d95903c123
1 измењених фајлова са 2 додато и 3 уклоњено
  1. 2 3
      apps/app/src/services/renderer/rehype-plugins/add-class.ts

+ 2 - 3
apps/app/src/services/renderer/rehype-plugins/add-class.ts

@@ -1,9 +1,8 @@
 // See: https://github.com/martypdx/rehype-add-classes for the original implementation.
 // See: https://github.com/martypdx/rehype-add-classes for the original implementation.
 // Re-implemeted in TypeScript.
 // Re-implemeted in TypeScript.
+import type { Nodes as HastNode, Element, Properties } from 'hast';
 import { selectAll } from 'hast-util-select';
 import { selectAll } from 'hast-util-select';
-import type { Node as HastNode, Element } from 'hast-util-select/lib/types';
-import { Properties } from 'hast-util-select/lib/types';
-import { Plugin } from 'unified';
+import type { Plugin } from 'unified';
 
 
 export type SelectorName = string; // e.g. 'h1'
 export type SelectorName = string; // e.g. 'h1'
 export type ClassName = string; // e.g. 'header'
 export type ClassName = string; // e.g. 'header'