Skip to content

Can't use inline HTML #3

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

Closed
antoinevg opened this issue Sep 27, 2012 · 2 comments
Closed

Can't use inline HTML #3

antoinevg opened this issue Sep 27, 2012 · 2 comments

Comments

@antoinevg
Copy link

(Love your design philosophy, this looks like a highly promising tool, thank you for putting it out there!)

Trying to use inline HTML in a post as per Gruber's example escapes the tags and presents them as text.

To reproduce: Create a post with the following text

This is a regular paragraph.

<table>
    <tr>
        <td>Foo</td>
    </tr>
</table>

This is another regular paragraph.

Expected output:

A table element with the text foo

Actual output:

The HTML code

@sbstjn
Copy link
Owner

sbstjn commented Sep 27, 2012

Thanks for your awesome bug report :) I found out it's related to a bug in markdown-js available at evilstreak/markdown-js#34. The bug in markdown-js exists for about 11 months and a quick and dirty fix is attached in the linked issue as well.

You can patch node_modules/node-markdownblog/node_modules/markdown/lib/markdown.js to get inline HTML working…

Update: With using the provided patch you will break HTML in code blocks :(

Maybe I should switch to another markdown compiler…

@antoinevg
Copy link
Author

Fortunately I'm not using code blocks on this particular blog so it certainly sorts me out for the meantime, thank you muchly! :-)

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

No branches or pull requests

2 participants