Clean up require -> import
This commit is contained in:
parent
36dcfbb2bc
commit
d9923053f5
@ -1,23 +1,13 @@
|
||||
import matter from 'gray-matter'
|
||||
import path from 'path'
|
||||
import fs from "fs"
|
||||
var remark = require('remark')
|
||||
//import remark2react from 'remark-react'
|
||||
|
||||
var remark2react = require("remark-react");
|
||||
const unified = require('unified')
|
||||
const markdown = require('remark-parse')
|
||||
const { wikiLinkPlugin } = require('remark-wiki-link');
|
||||
|
||||
var guide = require('remark-preset-lint-markdown-style-guide')
|
||||
var html = require('remark-html')
|
||||
var report = require('vfile-reporter')
|
||||
var vfile = require('to-vfile')
|
||||
var frontmatter = require('remark-frontmatter')
|
||||
var stringify = require('remark-stringify')
|
||||
var externalLinks = require('remark-external-links')
|
||||
const highlight = require('remark-highlight.js')
|
||||
|
||||
import unified from "unified";
|
||||
import markdown from "remark-parse";
|
||||
import {wikiLinkPlugin} from "remark-wiki-link";
|
||||
import html from "remark-html";
|
||||
import frontmatter from "remark-frontmatter";
|
||||
import externalLinks from "remark-external-links";
|
||||
import highlight from "remark-highlight.js";
|
||||
|
||||
const postsDirectory = path.join(process.cwd(), 'posts')
|
||||
const isFile = fileName => {
|
||||
@ -73,7 +63,8 @@ export const Transformer = {
|
||||
},
|
||||
|
||||
aliasDivider:"|"
|
||||
}).use(html)
|
||||
})
|
||||
.use(html)
|
||||
.process(sanitizedContent,
|
||||
function (err, file) {
|
||||
//console.log("asd", String(file).slice(0,50))
|
||||
|
Loading…
Reference in New Issue
Block a user