Skip to content

Add a case: leading paragraph in fenced_code_blocks. #210

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

Merged
merged 2 commits into from
May 23, 2016

Conversation

keysona
Copy link
Contributor

@keysona keysona commented May 19, 2016

Hi, I met a problem when I want to convert my article written by others markdown editor like Dillinger.

The problem in code block.

The input:

This is python code.
```python
import os
print(os.listdir('.'))
```

The output:

<p>This is python code.
<code>python
import os
print(os.listdir('.'))
</code></p>

But expected output is this:

<p>This is python code.</p>

<pre><code>import os
print(os.listdir('.'))
</code></pre>

I think most markdown editor suppor this, but markdown2 don't.
So I try to support this.
I have add some test, and all others test has been pass.

@nicholasserra
Copy link
Collaborator

Thank you :D

@nicholasserra nicholasserra merged commit cbf45c7 into trentm:master May 23, 2016
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

Successfully merging this pull request may close these issues.

None yet

2 participants