This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (() => { | |
| function formatDate(date = new Date()) { | |
| return date.toISOString().split('T')[0]; | |
| } | |
| function cleanMarkdown(text) { | |
| return text | |
| // Only escape backslashes that aren't already escaping something | |
| .replace(/\\(?![\*_`])/g, '\\\\') | |
| // Clean up excessive newlines |
OlderNewer