Skip to content

Commit

Permalink
Revert "Replace metalsmith-tagcleaner with a custom marked renderer"
Browse files Browse the repository at this point in the history
  • Loading branch information
36degrees authored Aug 1, 2022
1 parent 78989ed commit ef86cdc
Show file tree
Hide file tree
Showing 4 changed files with 200 additions and 99 deletions.
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

0 comments on commit ef86cdc

Please sign in to comment.