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 0a109d4 commit 446f0c2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ export default function(props: {
switch (token.props.name) {
case 'ruby': {
let rb, rt, tokens;
if (token.children.length == 1 && token.children[0].props.type == 'text') {
tokens = token.prope.text.split(" ");
if (token.children.length == 1 && token.children[0].type == 'text') {
tokens = token.props.text.trim().split(" ");
rb = [tokens[0]];
rt = [tokens.slice(1).join(' ')];
} else if (token.children.length > 2) {
Expand Down

0 comments on commit 446f0c2

Please sign in to comment.