Doesn't work with several important features
Opened this issue · 0 comments
Dzordzu commented
As of today, the support for the many important features is missing:
Links are causing errors
Code
[a](https://google.com)
Error
Python log
Traceback (most recent call last):
File "/usr/lib/python3.8/sre_parse.py", line 1039, in parse_template
this = chr(ESCAPES[this][1])
KeyError: '\\h'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "modules/ssl-websites/main.py", line 91, in <module>
sec.append(load_markdown(f'{MODULE_NAME}/a.md'))
File "/home/dzordzu/school/cyber/lab-official/lib/loader.py", line 68, in load_markdown
result = md2latex(result)
File "/home/dzordzu/school/cyber/lab-official/lib/markdown.py", line 11, in md2latex
md_text = md.convert(text)
File "/usr/lib/python3.8/site-packages/markdown/core.py", line 291, in convert
output = pp.run(output)
File "/usr/lib/python3.8/site-packages/markdown2latex-2.1-py3.8.egg/mdx_latex.py", line 508, in run
latex_link = re.sub(r'<a[^>]*>([^<]+)</a>',
File "/usr/lib/python3.8/re.py", line 210, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "/usr/lib/python3.8/re.py", line 327, in _subx
template = _compile_repl(template, pattern)
File "/usr/lib/python3.8/re.py", line 318, in _compile_repl
return sre_parse.parse_template(repl, pattern)
File "/usr/lib/python3.8/sre_parse.py", line 1042, in parse_template
raise s.error('bad escape %s' % this, len(this))
re.error: bad escape \h at position 0
Tables are not parsed
Code
### TEST
| A | B |
|--------|--------|
| asad a | dsdfda |
Result
Images are not shown
Code
![ALT](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png)