chore(editor): remove hast-util-from-html dependency
Code block highlighting in the editor used Prism.highlight to render HTML, then parsed that HTML back with hast-util-from-html to get the tokens for decorations. This now builds decorations straight from Prism.tokenize. That drops the dependency and about 10 packages it pulled in, and skips the HTML round trip on every redraw.
Tests
New tests check PHP and Handlebars highlighting (they fail without the hooks) and that a language Prism doesn't have stays unhighlighted
Summary by cubic
Builds code block highlighting decorations directly from Prism.tokenize instead of rendering HTML via Prism.highlight and parsing it back with hast-util-from-html. This drops the dependency and about 10 packages it pulled in, and skips the HTML round trip on every redraw.
The tokenize hooks still run, so templating languages like PHP and Handlebars keep highlighting their surrounding markup. Code in a language Prism doesn't have is now left unhighlighted instead of falling back to JavaScript.