Skip to content
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

BUG: Markdown strips down the spaces or indents inside the pre/code tag #41

Open
manojhl opened this issue May 8, 2014 · 4 comments
Open

Comments

@manojhl
Copy link

manojhl commented May 8, 2014

When I write code inside the shortcode tags wp-markdown strips out the spaces and even new lines in between them.

@stephenharris
Copy link
Owner

Hi @manojhl - can you give me a test case? i.e. What you type in, what you expect, and what you actually get.

@manojhl
Copy link
Author

manojhl commented May 8, 2014

@stephenharris sorry my mistake, the code was written inside a shorcode but markdownify don't consider this a code block so removed all indents inside it....
Is their any way around it, to notify not to strip off the indents inside a shortcode..filter!!!

@manojhl
Copy link
Author

manojhl commented May 8, 2014

K I got it from the issue #38.. Thanks.. Closing it..

@manojhl manojhl closed this as completed May 8, 2014
@manojhl
Copy link
Author

manojhl commented May 8, 2014

@stephenharris this is not a shortcode issue it works fine with the default wp editor, markdown don't consider any code block inside short code. so removed all indents inside it.
Sample

[tabx]
  <pre>
    <code class="language-css">
     * { 
       -webkit-box-sizing: border-box; 
           -moz-box-sizing: border-box; 
                    box-sizing: border-box; 
       }
    </code>
  </pre>
[/tabx]

I use this short code to display code and preview in tab-nav. The indents(spaces) are given to css properties for proper alignment and I have checked the database indents are removed..

It works fine outside the shortcode!!! :D

@manojhl manojhl reopened this May 8, 2014
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

No branches or pull requests

2 participants