Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown parsing fails #52

Closed
greenape opened this issue Sep 21, 2020 · 5 comments
Closed

Markdown parsing fails #52

greenape opened this issue Sep 21, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@greenape
Copy link
Owner

File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/markdown/extensions/md_in_html.py", line 78, in run
    block = self._process_nests(element, block)
  File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/markdown/extensions/md_in_html.py", line 45, in _process_nests
    self.run(element, block[nest_index[-1][0]:nest_index[-1][1]],  # last
  File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/markdown/extensions/md_in_html.py", line 52, in run
    tag = self._tag_data[self.parser.blockprocessors.tag_counter]
IndexError: list index out of range

Still have some issues after pulling the changes

Originally posted by @lanking520 in #46 (comment)

@greenape greenape added the bug Something isn't working label Sep 21, 2020
@greenape
Copy link
Owner Author

So this is coming up when MkDocs tries to parse the markdown, and is I thinks actually this issue Python-Markdown/markdown#780

So it may be that a bit of jiggling the template around will resolve things.

@greenape
Copy link
Owner Author

@lanking520 have you got a notebook you can share that triggers it?

@greenape
Copy link
Owner Author

I think this is going to be fixed once markdown 3.3 is released.

@lanking520
Copy link

We got the problem fixed once we upgrade to mknotebook 0.6.1. Everything works perfectly:

generated page: http://docs.djl.ai/jupyter/load_pytorch_model.html

@greenape
Copy link
Owner Author

Great, thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants