From 9fc53b4ef3920d127dc365dac0e70dc399ef5d4d Mon Sep 17 00:00:00 2001 From: richdouglasevans Date: Tue, 11 Sep 2018 21:25:29 +0100 Subject: [PATCH] [#923] Fix mutton and nut substitution in notes --- lib/tags/note.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/tags/note.js b/lib/tags/note.js index 9e39bbd7bf..a2d76d9f0f 100644 --- a/lib/tags/note.js +++ b/lib/tags/note.js @@ -40,7 +40,11 @@ module.exports = function note (hexo, args, content) { } return Promise.resolve( + // these replacements are a temporary fix: see the comments on + // https://github.com/cypress-io/cypress-documentation/pull/935 toMarkdown(content) + .replace('–', '--') + .replace('—', '---') ).then((markdown) => { return `
${header}${markdown}
` })