mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-28 00:20:48 +00:00
optional closing for bold text
This commit is contained in:
parent
f07a4143bd
commit
a101ff2de9
1 changed files with 2 additions and 1 deletions
|
|
@ -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>`
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue