79340060

Date: 2025-01-08 16:45:23
Score: 1.5
Natty:
Report link

You can manually create a new StyleAttributor with parchment directly:

import { Scope, StyleAttributor } from 'parchment'

const SizeStyle = new StyleAttributor('size', 'font-size', { scope: Scope.INLINE })
Quill.register(SizeStyle, true)

I got the idea from here: https://github.com/slab/quill/issues/4262#issuecomment-2231359742

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sebi