Add way to have wiki syntax characters not escaped.
Brought to you by:
ldyer,
volo_klymko
Right now if you enter some wiki syntax on a page, it is automatically escape. In general, this is desirable behavior. However, in some cases you might want to explicitly include a macro or some other functionality. For example, on my home page I wanted a way to put
{lozenge:icon=\!WhatsNew.png\!\|title=What's New\|width=100%}
And then use ditaval to exclude it from my other media types. It would be great if there was an outputclass value I could add to tell the dita2wiki tool not to escape any characters.
Thanks for your comment. Yes, essentially you want to create DITA-wiki mashups, programmatically. This is basically what the multi-excerpt implementation for DITA conrefs does.
Certainly you could do this by extending the Java implementation (in dita2confluence.jar) with logic for each of the wiki macros or plugins you want to use. Then, add the logic to your DITA processing to simply exclude that markup from your non-wiki outputs.
This would be the quickest way. The more architecturally sound way would be to rearchitect the Java implementation such that it had extension points. This would keep your custom bits outside of the core dita2confluence code, making for an easier experience when you add macros or upgrade your system.
I suggest that you inspect the multi-excerpt implementation in the dita2confluence.jar file and the corresponding template in dita2wml.xsl. You can use this as a guideline for implementing what you want.
I'm happy to review your code (as time permits - right now, I'm pretty busy so expect slower response times), you can reach me at lisa dot dyer at gmail dot com. Also, you should definitely consider contributing your work back to this community because I think there would be considerable interest and appreciation.
- lisa