mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-27 14:28:53 +09:00
fix
This commit is contained in:
parent
4cfd28a452
commit
dc6a6dcdc3
@ -88,7 +88,7 @@ export default function(props: {
|
||||
switch (token.props.name) {
|
||||
case 'ruby': {
|
||||
let rb, rt, tokens;
|
||||
token.children.forEach((t) => { if (t.type == 'text') { t.props.text = t.props.text.trim(); });
|
||||
token.children.forEach((t) => { if (t.type == 'text') { t.props.text = t.props.text.trim(); } });
|
||||
const children = token.children.filter((t) => t.type != 'text' || t.props.text != '');
|
||||
if (children.length == 1 && children[0].type == 'text') {
|
||||
tokens = children[0].props.text.split(" ");
|
||||
|
Loading…
Reference in New Issue
Block a user