We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For those who's trying to go futher, here's updates to comply with current version replacements.mjs of markdown-it
replacements.mjs
let markdownIt = require('markdown-it')({typographer: true}); let markdownItReplaceIt = require('markdown-it-replace-it'); markdownItReplaceIt.replacements.splice(0, markdownItReplaceIt.replacements.length); markdownItReplaceIt.replacements.push( { // +- → ± name: 'plusminus', re: /\+-/g, sub: '\u00b1', default: true }, { // ... → … (also ?.... → ?.., !.... → !..) // ???????? → ???, !!!!! → !!!, `,,` → `,` name: 'punct', re: /(?:\.\.|\?\?\?\?|!!!!|,,).+/, sub: function (s) { var res = s .replace(/\.{2,}/g, '…') .replace(/([?!])…/g, '$1..') .replace(/([?!]){4,}/g, '$1$1$1') .replace(/,{2,}/g, ','); return res }, default: true }, { // -- → –, --- → — name: 'dash', re: /--.+/, sub: function (s) { var res = s .replace(/(^|[^-])---(?=[^-]|$)/mg, '$1\u2014') .replace(/(^|\s)--(?=\s|$)/mg, '$1\u2013') .replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, '$1\u2013'); return res }, default: true }, ); markdownIt.use(markdownItReplaceIt);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For those who's trying to go futher, here's updates to comply with current version
replacements.mjs
of markdown-itThe text was updated successfully, but these errors were encountered: