diff --git a/build/engines.js b/build/engines.js
index 1cf5c02..f4f8c2a 100644
--- a/build/engines.js
+++ b/build/engines.js
@@ -31,7 +31,7 @@ const markdownEngines = {
permalinkSymbol: '',
slugify,
})
- .use(require('./lib/markdown-raw-html')),
+ .use(require('./lib/markdown-raw-html'), { debug: false }),
preview: markdownIt({
html: false,
@@ -45,7 +45,7 @@ function markdown (mode, input, env) {
input = input.replace(/\{!\{([\s\S]*?)\}!\}/mg, (match, contents) => {
try {
const result = handlebars.compile(contents)(env);
- return '|||' + result + '|||';
+ return 'æææ' + result + 'æææ';
} catch (e) {
log.error(e);
return '';
@@ -55,7 +55,7 @@ function markdown (mode, input, env) {
if (mode === 'preview') {
input = striptags(input
.replace(//g, '')
- .replace(/|||[\s\S]*?|||/gi, ''),
+ .replace(/æææ[\s\S]*?æææ/gi, ''),
).trim();
if (input.length > 1000) input = input.slice(0, 1000) + '…';
input = input ? markdownEngines[mode].render(input) : '';
diff --git a/build/lib/markdown-raw-html.js b/build/lib/markdown-raw-html.js
index ea7cec4..63a0b41 100644
--- a/build/lib/markdown-raw-html.js
+++ b/build/lib/markdown-raw-html.js
@@ -2,7 +2,7 @@
module.exports = exports = function (md, options) {
options = {
- fence: '|||',
+ fence: 'æææ',
...options,
};
@@ -58,7 +58,8 @@ module.exports = exports = function (md, options) {
}
if (startLine > state.discreteHtmlScan.line) {
- // we dun fucked up
+ // we dun fucked up, rescan
+ scanAhead(state, startLine, pos);
debug('We somehow got ahead of ourselves', { startLine, line: state.discreteHtmlScan.line, lastLine, pos, endOfLine, tokens: state.tokens });
throw new Error('markdown-it-discrete-html encountered a parsing error.');
}
diff --git a/public/_index-copy.md b/public/_index-copy.md
index 868452b..b826025 100644
--- a/public/_index-copy.md
+++ b/public/_index-copy.md
@@ -2,7 +2,7 @@
> **Trans·gen·der** - *adjective*
> Denoting or relating to a person whose sense of personal identity and gender does not correspond with their sex assigned at birth.
-|||