Altherneum / .github

Github meta data, profile, et cours
Other
1 stars 0 forks source link

Italic and bold breaker #5

Closed lx78WyY0J5 closed 4 months ago

lx78WyY0J5 commented 4 months ago

Find a way to break bold & italic if using a backslash before

.replace(/\*(?![^]*(`{1,3}|<|&gt;|<code>\s*|<textarea>\s*)).*?(?=\s*(?!`{0,3}|<\/textarea>)|<|\/code>)/gm, '<em>$&</em>')

dont work

.replace(/\*\*(.*?)\*\*/gm, '<b>$1</b>') // bold text
.replace(/\*(.*?)\*/gm, '<i>$1</i>') // italic text
.replace(/\_\_(.*?)\_\_/gm, '<u>$1</u>') // underline

To do

abc *abc*