We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a09df2 commit 1f2f413Copy full SHA for 1f2f413
md-convert
@@ -389,7 +389,7 @@ class TransformHtml(HTMLParser):
389
if val.startswith(('https://', 'http://', 'mailto:', 'ftp:')):
390
pass # nothing to check
391
elif '#' in val:
392
- pg, tgt = val.split('#', 2)
+ pg, tgt = val.split('#', 1)
393
if pg and pg not in VALID_PAGES or '#' in tgt:
394
st.bad_hashtags.add(val)
395
elif tgt in ('', 'opt', 'dopt'):
@@ -478,7 +478,7 @@ class TransformHtml(HTMLParser):
478
find = 'href="' + st.a_href + '"'
479
for j in range(len(st.html_out)-1, 0, -1):
480
if find in st.html_out[j]:
481
- pg, tgt = st.a_href.split('#', 2)
+ pg, tgt = st.a_href.split('#', 1)
482
derived = txt2target(atxt, tgt)
483
if pg == '':
484
if derived in st.latest_targets:
0 commit comments