-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
jupyterlab (version 4.0.8 ) can't treat markdown properly #15411
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
Can you paste the full markdown text to make it easy to reproduce? |
Sure, something like this : File D:\ProgramData\miniconda3\envs\pyautogen\lib\site-packages\requests\models.py:975, in Response.json(self, **kwargs)
971 return complexjson.loads(self.text, **kwargs)
972 except JSONDecodeError as e:
973 # Catch JSON-related errors and raise as requests.JSONDecodeError
974 # This aliases json.JSONDecodeError and simplejson.JSONDecodeError
--> 975 raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
|
Thank you for providing the markdown @vivisol! Can you paste the entire content of the cell, including the text at the top (it looks like some text is missing from the top of the markdown cell, in your last post)? Does this error with the markdown also happen when the cell only contains the triple backtick code section, not any additional text? |
I am having a similar issue in 4.0.6. It is most noticeable with the quoted text syntax ">". Here's an example Markdown cell. This is the only cell in the notebook: This is rendered as:
Rendered as: In this case, only the "a." at the end is there. I tried pasting text into a text editor to look for special characters and could not find anything. From my testing, it seems like this only impacts Markdown edited on Jupyter 4+. When the notebook is opened in Jupyter 3.6.6, the actual Markdown corresponds to what 4+ displayed--ie. the Markdown is broken in the render process and changed to the incorrect text. But viewing it in 4+ looks correct. |
@magitz do you use Windows? If so, I have a strong suspicion that is different and it is down to line endings not being normalized on paste in Chrome. But this is just guessing without knowing your OS/browser and having a notebook to test it. |
Ah...I do use Windows and Chrome...Is that a different issue? Any suggested work around (other than different browser/OS). I'll test in Edge/Firefox in a sec. |
It does seem to work better in Firefox. |
This is tracked in #14752. I think we can close this as a duplicate of the other. |
Closing as a duplicate of #14752 — thanks @krassowski for finding the original issue! |
Description
jupyterlab (version 4.0.8 ) can't treat markdown properly.
here is the bug:
jupyterlab version is :
browser version:
markdown is as follows:
but render result is :
Reproduce
Expected behavior
Context
Troubleshoot Output
Command Line Output
Browser Output
The text was updated successfully, but these errors were encountered: