winterstein / Eclipse-Markdown-Editor-Plugin

Adds Markdown text editing support to Eclipse
Eclipse Public License 1.0
297 stars 73 forks source link

Bash comments in block code section treated as header #60

Closed bindul closed 8 years ago

bindul commented 8 years ago

If a markdown file has a block code section with bash code snippet, the preview and outline in the plugin treats that as a heading.

Example:

#!/bin/bash
# some comment
echo 'test'

Is rendered as:

!/bin/bash

some comment

echo 'test'

Rather than

#!/bin/bash
# some comment
echo 'test'
paulvi commented 8 years ago

You need to use GFM https://github.com/satyagraha/gfm_viewer for rendering

bindul commented 8 years ago

While GFM viewer is an option (and I will admit I have not used that feature); the markdown files I am working on are not GitHub flavoured Markdown files; they are plain Markdown files. And if I understand correctly, the issue above is not specific to GitHub flavoured markdown.

Just my 2 cents.

paulvi commented 8 years ago

``` is part of GFM, not standard markdown