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

Preview crashes on images inside links (Docutils) #38

Open
UNIVPM-S1079707 opened this issue May 2, 2022 · 0 comments
Open

Preview crashes on images inside links (Docutils) #38

UNIVPM-S1079707 opened this issue May 2, 2022 · 0 comments

Comments

@UNIVPM-S1079707
Copy link

UNIVPM-S1079707 commented May 2, 2022

The version I'm using is the latest AUR package (1.4.3-2), docutils is version 0.16.

When trying to preview a document with an image off the internet inside a link, the preview crashes.

Exception Error!

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/formiko/renderer.py", line 371, in render_output
    html = publish_string(**kwargs).decode('utf-8')
  File "/usr/lib/python3.10/site-packages/docutils/core.py", line 407, in publish_string
    output, pub = publish_programmatically(
  File "/usr/lib/python3.10/site-packages/docutils/core.py", line 665, in publish_programmatically
    output = pub.publish(enable_exit_status=enable_exit_status)
  File "/usr/lib/python3.10/site-packages/docutils/core.py", line 217, in publish
    self.document = self.reader.read(self.source, self.parser,
  File "/usr/lib/python3.10/site-packages/docutils/readers/__init__.py", line 71, in read
    self.parse()
  File "/usr/lib/python3.10/site-packages/docutils/readers/__init__.py", line 77, in parse
    self.parser.parse(self.input, document)
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/__init__.py", line 191, in parse
    self.statemachine.run(inputlines, document, inliner=self.inliner)
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 170, in run
    results = StateMachineWS.run(self, input_lines, input_offset,
  File "/usr/lib/python3.10/site-packages/docutils/statemachine.py", line 241, in run
    context, next_state, result = self.check_line(
  File "/usr/lib/python3.10/site-packages/docutils/statemachine.py", line 459, in check_line
    return method(match, context, next_state)
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 2974, in text
    msg = self.reporter.severe(
  File "/usr/lib/python3.10/site-packages/docutils/utils/__init__.py", line 239, in severe
    return self.system_message(self.SEVERE_LEVEL, *args, **kwargs)
  File "/usr/lib/python3.10/site-packages/docutils/utils/__init__.py", line 197, in system_message
    raise SystemMessage(msg, level)
 docutils.utils.SystemMessage: :77: (SEVERE/4) Missing matching underline for section title overline.

 __________
 [![](https://spee.ch/OzK1u0v_BsLyXyoWS36RdRl0kMbMY-#5a485929c627d649542243733f26e4f97d859613)](https://odysee.com/using_odysee_is_bad_for_lbry:3e8aba56bddd1efe3aa3394802bdc585e45cc439)

It renders correctly on the Common Mark parser.

@UNIVPM-S1079707 UNIVPM-S1079707 changed the title Preview crashes on images inside links Preview crashes on images inside links (Docutils) May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant