Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

501 B
Raw Blame
import Heading from '@tiptap/extension-heading';

export const HeadingFidelity = Heading.extend({
  priority: 60,

  addAttributes() {
    return {
      ...this.parent?.(),
      headingStyle: { default: 'atx' },
      sourceTrailingHashes: { default: null },
      sourceUnderlineLength: { default: null },
      sourceContiguousNext: { default: false },
      sourceLeadingIndent: { default: null, rendered: false },
      sourceInteriorSpacing: { default: null, rendered: false },
    };
  },
});