debian-mirror-gitlab/app/assets/javascripts/behaviors/markdown/marks/strike.js
2019-03-02 22:35:43 +05:30

15 lines
372 B
JavaScript

/* eslint-disable class-methods-use-this */
import { Strike as BaseStrike } from 'tiptap-extensions';
// Transforms generated HTML back to GFM for Banzai::Filter::MarkdownFilter
export default class Strike extends BaseStrike {
get toMarkdown() {
return {
open: '~~',
close: '~~',
mixable: true,
expelEnclosingWhitespace: true,
};
}
}