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

Add markdown in long-description for xml-based templates #1089

Closed
wants to merge 1 commit into from

Conversation

siad007
Copy link
Contributor

@siad007 siad007 commented Dec 3, 2013

Fixes #1064

@mvriel
Copy link
Member

mvriel commented Dec 5, 2013

I am sorry but this approach does not fit with the strategy for the XML output.

The XML output should not contain HTML markup as we might need to move to different output formats in the future. Transforming a text from markdown to html should be done in the template itself (as the twig renderer has a markdown filter).

What can be done is use a php function in XSL to transform from the markdown text to html as is shown in this article: http://techportal.inviqa.com/2009/12/16/transforming-xml-with-php-and-xsl/ (look for the chapter Calling PHP functions from XSLT); this way it is possible to add filters to XSL

@siad007
Copy link
Contributor Author

siad007 commented Dec 5, 2013

ah ok i get that point

@siad007 siad007 closed this Dec 5, 2013
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.

No markdown except in template "clean"
2 participants