[wp-hackers] adding HTML to readme.txt

Phillip Lord phillip.lord at newcastle.ac.uk
Fri May 11 07:50:57 UTC 2012




I am tryign to add raw HTML to me readme.txt. The reason for this is
that I want to add a span tag which contains CoiNS metadata to this
page, which my plugin itself can interpret. 

The section of my readme.txt looks like this.

---- START ----

A tool for producing citations and bibliographies in Wordpress posts.
Developed for the Knowledgeblog project (http://knowledgeblog.org).


<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=copy-from-kblog-metadata.php&amp;rft.title=Kcite&amp;rft.source=Wordpress+Plugin&amp;rft.date=2012-05-11&amp;rft.identifier=http%3A%2F%2Flocalhost%2F2012%2F05%2F11%2Fkcite%2F&amp;rft.au=Phillip+Lord&amp;rft.au=Simon+Cockell&amp;rft.format=text&amp;rft.language=English"></span>

---- END ----

COinS metadata is not my invention, so please don't blame me for the
format! However, if I run markdown on this, it does the right thing:

---- START ----

<p>A tool for producing citations and bibliographies in Wordpress posts.
Developed for the Knowledgeblog project (http://knowledgeblog.org).</p>

<p><span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=copy-from-kblog-metadata.php&amp;rft.title=Kcite&amp;rft.source=Wordpress+Plugin&amp;rft.date=2012-05-11&amp;rft.identifier=http%3A%2F%2Flocalhost%2F2012%2F05%2F11%2Fkcite%2F&amp;rft.au=Phillip+Lord&amp;rft.au=Simon+Cockell&amp;rft.format=text&amp;rft.language=English"></span></p>

---- END ----


However, with the readme.txt validator I either get no span tag at all,
or I get the an escaped span tag with entities everywhere and not an
angle bracket in site (er, sight), depending on whether I have the span
tag in a clear line of it's own or not. I have even tried adding php in
(which the example readme suggests you can do) and having it echo the
HTML. Didn't work. 

I am guessing that readme.txt is not actually parsed my markdown but
something related. Is it possible to include raw HTML in? Can anyone
point me to an example? 

Thanks

Phil


More information about the wp-hackers mailing list