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

Markdown Extra on Import #41

Open
jonmifsud opened this issue Feb 9, 2015 · 2 comments
Open

Markdown Extra on Import #41

jonmifsud opened this issue Feb 9, 2015 · 2 comments

Comments

@jonmifsud
Copy link

Having an issue when importing and having a Markdown Extra formatter. Not sure if it's something from the integration branch or some setting.

The HTML/Markdown I'm importing contains the following amongst other things which is not exactly valid html.

When viewing the data as output by the markdownify function all looks good, yet when the entry is created the output on the frontend appears to be encoded, presumably when the Markdown Extra function is run to insert this data. What is most interesting however is the fact that when I re-save the entry through the backend this appears as a normal xml node not encoded. So I can then use XSLT to transform this fake tag into an image or something else as appropriate.

@brendo any idea where I should be looking?

@brendo
Copy link
Member

brendo commented Feb 9, 2015

Is it just Markdown Extra?

@jonmifsud
Copy link
Author

@brendo no it's practically the whole range Markdown, Markdown Extra, and Markdown Extra with Smarty Pants. Didn't try purifier as that wouldn't give me the flexibility I need. I'm not sure if it's something with the XML Importer possibly encoding these XML entities.

Actually I've got it down to the markdownify function supplier with teh XML Importer Helpers. More specifically htmlspecialchars temporarily I'm using an str_replace to revers < and > but not convinced that it is a robust solution.

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