Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriha-chan committed Jun 16, 2023
1 parent 4cfd28a commit dc6a6dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(" ");
Expand Down

0 comments on commit dc6a6dc

Please sign in to comment.