Skip to content
This repository has been archived by the owner on Dec 20, 2017. It is now read-only.

Fenced Code Blocks with newlines do not render/highlight correctly when in a list item. #237

Open
todofixthis opened this issue Jul 14, 2015 · 2 comments
Labels

Comments

@todofixthis
Copy link

Example markdown:

1. List Item

  ```
  # Code Block

  # With Newlines
  ```

Renders like this in Github:

  1. List Item

    # Code Block
    
    # With Newlines
    

However, the Markdown plugin highlights it like this:

captura de pantalla 2015-07-14 a las 11 03 57

and renders it like this:

captura de pantalla 2015-07-14 a las 11 04 03

Using 8 spaces instead of backticks does cause the code to highlight/render correctly (so long as there is a trailing newline).

Specs:

  • Mac OS 10.10.4
  • PyCharm 4.5.3
  • Markdown Plugin 0.9.7

"Fenced code blocks" option is enabled.

This issue may be related to #231 #223 #124

@vsch
Copy link

vsch commented Aug 18, 2015

It is a bug in the old version of pegdown parser that this plugin uses.

I forked this plugin and updated to latest pegdown, fixed its list parsing bugs and added options. Made it look almost like GitHub's markdown.

Current version of my plugin has syntax highlighting broken, the fix will be available tomorrow. I have it working as it was in idea-markdown but it is very limited. Syntax highlighting for inlines does not work in lists, tables, etc. Only in plain paragraphs.

I am working on a temporary quick-fix that will be acceptable until I can write a lexer as expected by IntelliJ. The plugin is called MultiMarkdown check it out and let me know what you think.

@nicoulaj nicoulaj added the Bug label May 22, 2016
@nicoulaj
Copy link
Owner

Notice: This plugin is no more maintained and it has been removed from Jetbrains plugins repository. There is a Markdown plugin officially supported by Jetbrains.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants