1
0
mirror of https://github.com/GenderDysphoria/GenderDysphoria.fyi.git synced 2025-11-25 12:32:42 +00:00

Changing fencing on html blocks

Because *someone* had to use three pipes in their twitter display name
This commit is contained in:
Jocelyn Badgley (Twipped)
2020-03-06 19:30:48 -08:00
parent 6ae8f358a4
commit b9f82a7018
3 changed files with 8 additions and 7 deletions

View File

@@ -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.');
}