debian-mirror-gitlab/app/assets/javascripts/behaviors/markdown/marks/strike.js
2022-05-07 20:08:51 +05:30

18 lines
335 B
JavaScript

// Transforms generated HTML back to GFM for Banzai::Filter::MarkdownFilter
export default () => ({
name: 'strike',
schema: {
parseDOM: [
{
tag: 'del',
},
],
toDOM: () => ['s', 0],
},
toMarkdown: {
open: '~~',
close: '~~',
mixable: true,
expelEnclosingWhitespace: true,
},
});