Edgewall Software

Ticket #6508 (new enhancement)

Opened 9 months ago

Last modified 2 weeks ago

Possible to write HTML comments into wiki pages?

Reported by: quinn@… Owned by: cboos
Priority: low Milestone: 0.12
Component: wiki system Version: 0.10.4
Severity: minor Keywords: patch
Cc:

Description

I'm finding that the HTML WikiProcessor strips-out comments. Is there any way to include HTML comments on a wiki page? The need is to paste in something like the machine-readable code generated by Creative Commons:

<!--
<rdf:RDF xmlns="http://web.resource.org/cc/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<Work rdf:about="">
   <license rdf:resource="http://creativecommons.org/licenses/GPL/2.0/" />
   <dc:type rdf:resource="http://purl.org/dc/dcmitype/Software" />
</Work>
<License rdf:about="http://creativecommons.org/licenses/GPL/2.0/">
<permits rdf:resource="http://web.resource.org/cc/Reproduction" />
   <permits rdf:resource="http://web.resource.org/cc/Distribution" />
   <requires rdf:resource="http://web.resource.org/cc/Notice" />
   <permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
   <requires rdf:resource="http://web.resource.org/cc/ShareAlike" />
   <requires rdf:resource="http://web.resource.org/cc/SourceCode" />
</License>
</rdf:RDF>
-->

Attachments

6508-htmlcomment-processor.patch (2.5 kB) - added by rblank 2 weeks ago.
Patch against trunk adding a htmlcomment wiki processor

Change History

Changed 5 months ago by cboos

  • keywords verify added
  • severity changed from trivial to normal
  • milestone set to 0.11.1

Have you tried with 0.11? I think this should now work.

Changed 5 months ago by quinn@…

I have not. I look forward to its release. Cheers!

Changed 8 weeks ago by cboos

  • keywords verify removed
  • severity changed from normal to minor
  • milestone changed from 0.11.2 to 0.12

here's an HTML comment (between the arrows):

→ ←

Appears to be stripped in 0.11. Maybe there could be a special htmlcomment processor for this?

Changed 8 weeks ago by nkantrowitz

Seems like a good case for a CC license macro.

Changed 2 weeks ago by rblank

Patch against trunk adding a htmlcomment wiki processor

Changed 2 weeks ago by rblank

  • keywords patch added

The patch above adds a new htmlcomment wiki processor that allows embedding HTML comments, together with the relevant unit tests. Use it as follows:

{{{
#!htmlcomment
This is an HTML comment <em>with tags &amp; entities</em>.
}}}

This would generate the following block in the output:

<!--
This is an HTML comment <em>with tags &amp; entities</em>.
-->

Christian, is that what you had in mind? If so, let me know and I'll commit to trunk and update the documentation.

Add/Change #6508 (Possible to write HTML comments into wiki pages?)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change. Next status will be 'new'
The owner will change to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.