Skip to content

Commit f87c7f8

Browse files
improve markdown (#237)
Co-authored-by: Vijay Swamidass <[email protected]>
1 parent dde7945 commit f87c7f8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

chrome-extension/sidepanel.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,9 @@ URL: ${pageContext.url}`;
252252

253253
// Bold (**bold** or __bold__)
254254
text = text.replace(/\*\*(.*?)\*\*/g, '<strong>$1</strong>');
255-
text = text.replace(/__(.*?)__/g, '<strong>$1</strong>');
256255

257256
// Italic (*italic* or _italic_)
258257
text = text.replace(/\*(.*?)\*/g, '<em>$1</em>');
259-
text = text.replace(/_(.*?)_/g, '<em>$1</em>');
260258

261259
// Convert list items but don't wrap in ul/ol yet
262260
text = text.replace(/^[\s]*[-\*\+]\s+(.+)$/gm, '<!--UL_ITEM--><li>$1</li>');

0 commit comments

Comments
 (0)