Skip to content

Commit 94f827f

Browse files
committed
Update comments
1 parent 94c89a7 commit 94f827f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/ServiceProvider.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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
});

src/Transformer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
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

1214
class Transformer

0 commit comments

Comments
 (0)