Skip to content

Commit

Permalink
Trim keys when parsing markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
thsparks committed Mar 6, 2025
1 parent 98a6d2d commit e42b051
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pxtlib/markdownMetadataParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ namespace pxt {
}
}

currentKey = keyMatch[1].toLowerCase();
currentKey = keyMatch[1].trim().toLowerCase();
currentValue = keyMatch[2];
}
else if (currentKey) {
Expand Down Expand Up @@ -141,4 +141,4 @@ namespace pxt {
}
return 0;
}
}
}

0 comments on commit e42b051

Please sign in to comment.