Fixed compose
This commit is contained in:
@ -27,7 +27,7 @@ renderer.heading = (text, level) => {
|
||||
|
||||
const convertToMarkdown = (text) => {
|
||||
// Add TOC
|
||||
text = toc.insert(text, {
|
||||
text = toc.insert(text || '', {
|
||||
slugify: (heading) => {
|
||||
// FIXME: E.g. `&` gets messed up
|
||||
const headingSlug = _.escape(slug(heading));
|
||||
|
Reference in New Issue
Block a user