debian-mirror-gitlab/app/assets/javascripts/behaviors/markdown/marks/strike.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
335 B
JavaScript
Raw Normal View History

2019-03-02 22:35:43 +05:30
// Transforms generated HTML back to GFM for Banzai::Filter::MarkdownFilter
2022-05-07 20:08:51 +05:30
export default () => ({
name: 'strike',
schema: {
parseDOM: [
{
tag: 'del',
},
],
toDOM: () => ['s', 0],
},
toMarkdown: {
open: '~~',
close: '~~',
mixable: true,
expelEnclosingWhitespace: true,
},
});