Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Replace metalsmith-tagcleaner with a custom marked renderer" #2288

Merged
merged 1 commit into from
Aug 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions lib/marked-renderer.js

This file was deleted.

6 changes: 4 additions & 2 deletions lib/metalsmith.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ const metalsmith = require('metalsmith') // static site generator
const assets = require('metalsmith-assets') // copy static assets
const brokenLinkChecker = require('metalsmith-broken-link-checker')
const titleChecker = require('./metalsmith-title-checker.js')
const markedRenderer = require('./marked-renderer.js')
const env = require('metalsmith-env') // environment vars plugin
const hashAssets = require('metalsmith-fingerprint-ignore') // add hash to specified files and ignores files that match a pattern
const inplace = require('@metalsmith/in-place') // render templating syntax in your source files
const layouts = require('@metalsmith/layouts') // apply layouts to source files
const tagcleaner = require('metalsmith-tagcleaner') // Use tag cleaner to remove <p> tags around images
const permalinks = require('@metalsmith/permalinks') // apply a permalink pattern to files
const canonical = require('metalsmith-canonical') // add a canonical url property to pages

Expand Down Expand Up @@ -233,11 +233,13 @@ module.exports = metalsmith(__dirname) // __dirname defined by node.js: name of
gfm: true,
tables: true,
pedantic: true,
renderer: markedRenderer,
highlight: highlighter
}
}))

// use tag cleaner to remove <p> tags around images
.use(tagcleaner())

// apply a permalink pattern to files
.use(permalinks({
relative: false
Expand Down
Loading