optional closing for bold text

This commit is contained in:
liamcottle 2024-09-22 22:55:58 +12:00
commit a101ff2de9

View file

@ -87,8 +87,9 @@ class MicronParser {
});
// parse bold
// `!Bold Text
// `!Bold Text`!
line = line.replaceAll(/`!(.*?)`!/g, function(match, text) {
line = line.replaceAll(/`!(.*?)(?:`!)?/g, function(match, text) {
return `<span style="font-weight:bold;">${text}</span>`
});