mdcont.js 259 B

12345678910111213
  1. /**
  2. * @typedef {import('../../types').MigrationModule} MigrationModule
  3. */
  4. module.exports = [
  5. /**
  6. * @type {MigrationModule}
  7. */
  8. (body) => {
  9. const oldMdcontPrefixRegExp = /#mdcont-/g;
  10. return body.replace(oldMdcontPrefixRegExp, '#');
  11. },
  12. ];