Skip to content

Commit 644704c

Browse files
committed
Update constants and create 3 functions, one each for applying or
removing syntax and one specificaly for bold-italic syntax.
1 parent 5954fef commit 644704c

File tree

2 files changed

+497
-457
lines changed

2 files changed

+497
-457
lines changed

tkintermd/tkintermd_constants.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
italic_md_syntax = ("*", "_")
1717
"""tuple: Markdown syntax for italic highlighting."""
1818
italic_md_ignore = (
19-
"**", "__", "- ", "> ", "# ", "`",
20-
"--", ">> ", "## ",
19+
"- ", "> ", "# ", "`",
20+
"**", "__", "--", ">> ", "## ",
2121
"***", "___", "---", ">>> ", "### ", "```", "===",
2222
"####", "#####", "######",
2323
)
@@ -26,9 +26,9 @@
2626
bold_italic_md_syntax = ("***", "___")
2727
"""tuple: Markdown syntax for bold-italic highlighting."""
2828
bold_italic_md_ignore = (
29-
"*", "_", "- ", "> ", "# ", "`",
30-
"**", "__", "--", ">> ", "## ",
31-
"***", "___", "---", ">>> ", "### ", "```", "===",
29+
"- ", "> ", "# ", "`",
30+
"--", ">> ", "## ",
31+
"---", ">>> ", "### ", "```", "===",
3232
"####", "#####", "######",
3333
)
3434
"""tuple: Markdown syntax to ignore for bold-italic highlighting."""

0 commit comments

Comments
 (0)