We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97744de commit f14b6a9Copy full SHA for f14b6a9
lib/markdown2.py
@@ -141,12 +141,11 @@
141
DEFAULT_TAB_WIDTH = 4
142
143
144
-# _hash_text is used to temporarily replace characters and HTML which
+# _hash_text is used to temporarily escape (replace) characters and HTML which
145
# should be ignored by the processor.
146
#
147
# Afterwards, we find stuff that looks like 'key32-???' and convert it back
148
# to the escaped things.
149
-HEX_DIGITS = "0123456789abcdef"
150
def _hash_text(s: str) -> str:
151
h = hash(s) # Not cryptographically sure, but that's fine
152
h = h*2 + int(h>0) # As a positive number
0 commit comments