15 lines
372 B
JavaScript
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,
|
|
};
|
|
}
|
|
}
|