noamross / htmlhelp

Enhanced HTML R documentation
15 stars 2 forks source link

Fallback for non-HTML rendering of help #5

Open klmr opened 8 years ago

klmr commented 8 years ago

What happens when the help is not rendered to HTML but rather to PDF or troff/text? If I am reading the code correctly, the contents of the tag will then just be echoed verbatim, which probably isn’t very useful. Does it make more sense to hide the content? Or maybe the document writer should be able to provide a fallback.

noamross commented 8 years ago

Yes, one currently must wrap macros in if{html}{MACRO}. Possibly, together with if{latex} or other \ifelsemacros (See this section of WRE]. I will probably wrap the existing macros with this, but have to think about how some of the nested macros will work.