feat: highlight code blocks

This commit is contained in:
Fernando Porazzi
2023-10-07 12:30:05 +02:00
parent 585f031ce1
commit 9c4871d3c1
7 changed files with 102 additions and 2 deletions

View File

@ -34,3 +34,8 @@ export const CashuRegex = /(cashuA[A-Za-z0-9_-]{0,10000}={0,3})/i;
* Regex to match any npub/nevent/naddr/nprofile/note
*/
export const MentionNostrEntityRegex = /@n(pub|profile|event|ote|addr|)1[acdefghjklmnpqrstuvwxyz023456789]+/g;
/**
* Regex to match markdown code content
*/
export const MarkdownCodeRegex = /(```.+?```)/gms;