File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,11 @@ export const linkCompiler = ({
54
54
}
55
55
56
56
if ( config . class ) {
57
- attrs . push ( `class="${ config . class } "` ) ;
57
+ let classes = config . class ;
58
+ if ( Array . isArray ( config . class ) ) {
59
+ classes = config . class . join ( ' ' ) ;
60
+ }
61
+ attrs . push ( `class="${ classes } "` ) ;
58
62
}
59
63
60
64
if ( config . id ) {
Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ describe('render', function () {
285
285
) ;
286
286
287
287
expect ( output ) . toMatchInlineSnapshot (
288
- `"<p><a href="http://url" target="_blank" rel="noopener" class="someCssClass, anotherCssClass">alt text</a></p>"` ,
288
+ `"<p><a href="http://url" target="_blank" rel="noopener" class="someCssClass anotherCssClass">alt text</a></p>"` ,
289
289
) ;
290
290
} ) ;
291
291
You can’t perform that action at this time.
0 commit comments