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

Python code is not rendered correctly #125

Closed
Muffo opened this Issue May 13, 2016 · 4 comments

Comments

Projects
None yet
2 participants
@Muffo

Muffo commented May 13, 2016

I am testing the demo of the Wiki and I have found an issue with pages containing Python code.

Text of the page

```
for i in range(3):
    print i
```

Result

``` for i in range(3):

System Message: WARNING/2 (<string> line 1) id2
Inline literal start-string without end-string.

System Message: ERROR/3 (<string> line 3)
Unexpected indentation.

print i
System Message: WARNING/2 (<string> line 4)
Block quote ends without a blank line; unexpected unindent.

```

System Message: WARNING/2 (<string> line 4) id4
Inline literal start-string without end-string.

System Message: WARNING/2 (<string> line 4) id6
Inline interpreted text or phrase reference start-string without end-string.

URL of the page http://waliki.pythonanywhere.com/newpage3/edit

See screenshot:
screenshot_051316_122113_pm

@mgaitan

This comment has been minimized.

Owner

mgaitan commented May 13, 2016

Hi @Muffo. I've tried the page you linked and I can't reproduce it, both in rst and md formats. The problem looks like the editor never knew you changed the default format (rst) to markdown, and it's rendering using the wrong processor for your markup. this is done via javascript, when you click in the dropdown.

which browser do you use? do you have javascript disabled, may be? Does it also happen to you editing a page that already exists?

@Muffo

This comment has been minimized.

Muffo commented May 13, 2016

I am using the latest stable version of Chrome on Windows and after reloading the page it is working OK

I'll give you more details about what I did originally:

  1. Open the URL of a non existing page
  2. Create the page and add the markdown code
  3. Click on Preview using restructured text (do not selecting "Markdown")
  4. The error is displayed
  5. Go back to the Editor view
  6. Select Markdown and click again on Preview
  7. The error is still there

Hope this helps

@mgaitan

This comment has been minimized.

Owner

mgaitan commented May 13, 2016

ok, great report, I can reproduce it now . I'll see asap. thanks

@Muffo

This comment has been minimized.

Muffo commented May 13, 2016

There's no hurry for the fix :)

I am glad this was useful!

@mgaitan mgaitan closed this in 1615282 Mar 26, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment