blob: 4c1542d14ea33e9b88f9f3d73d8a97ece0c7bf51 (
plain)
1
2
3
4
5
6
7
8
9
10
|
/* eslint-disable class-methods-use-this */
import { OrderedList as BaseOrderedList } from 'tiptap-extensions';
// Transforms generated HTML back to GFM for Banzai::Filter::MarkdownFilter
export default class OrderedList extends BaseOrderedList {
toMarkdown(state, node) {
state.renderList(node, ' ', () => '1. ');
}
}
|