Re:Quill v2 – Rich text editor
by pmlnr on Friday April 19, 2024 @04:26PM
(#40091566)
Is anyone aware of a word processor, text editor, whatever, that can handle HTML definition lists natively?
[ Parent
| on HN ]
Probably prosemirror. I don't know that it's built in by default, but it's well within prosemirror's model, so it shouldn't require a large investment to use.
That said, prosemirror's got a pretty steep learning curve.
Re:Quill v2 – Rich text editor
by notyoutube on Saturday April 20, 2024 @02:43AM
(#40095362)
Isn't the "flat markup" for inline elements in prosemirror kind of unnatural to work on html?
Nothing is built into ProseMirror except for the text span.
For a definition list, you’d probably want two node types: a definition list, and a definition list item.
And then create toDOM and parseDOM methods to render and parse respectively the html you want.
Re:Quill v2 – Rich text editor
by crabmusket on Friday April 19, 2024 @08:50PM
(#40093516)
I'd really like a WYSIWYG editor that's designed to produce HTML documents. Not for web pages, but for documents. HTML has great prose features, but it seems like there's nothing in between Microsoft Word and "now you're building a website".
Re:Quill v2 – Rich text editor
by oneeyedpigeon on Saturday April 20, 2024 @04:04AM
(#40095666)
I guess one of the many Markdown editors is what you're looking for, then you just need to add a build step at the end. Unless you need any of the 'document' features of html that aren't in md, of course.
I don't think so. They were pretty specific: "I'd really like a WYSIWYG editor".
Re:Quill v2 – Rich text editor
by oneeyedpigeon on Saturday April 20, 2024 @06:23AM
(#40096229)
There are definitely Markdown editors that are WYSIWYG. In fact, md is a lot 'closer' to WYSIWYG than HTML is.
Re:Quill v2 – Rich text editor
by crabmusket on Saturday April 20, 2024 @06:38AM
(#40096291)
I think HTML is a pretty decent semantic structure for documents. The WYSIWYG is good for convenience, as is markdown text format.
Re:Quill v2 – Rich text editor
by crabmusket on Saturday April 20, 2024 @06:38AM
(#40096287)
I agree some of the WYSIWYG markdown editors are the closest thing to what I want. I quite like Obsidian's editor for what it is, which does a pretty good job balancing rendering and letting you edit the actual markdown syntax.
But you're editing markdown, not HTML. And, for example, markdown doesn't have definition lists.