File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,13 @@ class ServiceProvider extends AddonServiceProvider
1818 public function bootAddon ()
1919 {
2020 Augmentor::addExtension ('ruby ' , new Extensions \Ruby ());
21- Augmentor::addExtension ('rubyText ' , new Extensions \RubyText ());
2221
22+ /*
23+ * The extra rubyText node extension and augmentation hook are needed
24+ * because rendering multiple nested tags from a single mark doesn't
25+ * work in tiptap-php. See comment in Transformer for more info.
26+ */
27+ Augmentor::addExtension ('rubyText ' , new Extensions \RubyText ());
2328 Bard::hook ('augment ' , function ($ value , $ next ) {
2429 return $ next (Transformer::transform ($ value ));
2530 });
Original file line number Diff line number Diff line change 77* node data. This is needed because rendering multiple nested tags
88* from a single mark doesn't work in tiptap-php, so the only way to
99* acheive the desired HTML output is to make them nodes instead.
10+ *
11+ * https://github.com/ueberdosis/tiptap-php/issues/43
1012*/
1113
1214class Transformer
You can’t perform that action at this time.
0 commit comments