This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { visit, Parent } from 'unist-util-visit';
|
||||
import { Parent } from 'unist';
|
||||
import { visit } from 'unist-util-visit';
|
||||
|
||||
export default function remarkCodeTitles() {
|
||||
return (tree: Parent & { lang?: string }) =>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { VFile } from 'vfile';
|
||||
import { visit, Parent } from 'unist-util-visit';
|
||||
import { visit } from 'unist-util-visit';
|
||||
import { load } from 'js-yaml';
|
||||
import { Parent } from 'unist';
|
||||
|
||||
export default function extractFrontmatter() {
|
||||
return (tree: Parent, file: VFile) => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Literal } from 'unist';
|
||||
import { visit, Parent, Node } from 'unist-util-visit';
|
||||
import { Literal, Parent, Node } from 'unist';
|
||||
import { visit } from 'unist-util-visit';
|
||||
import sizeOf from 'image-size';
|
||||
import fs from 'fs';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user