| 1 |
# Change log for HTML::WikiConverter |
| 2 |
|
| 3 |
version: 0.68 |
| 4 |
date: 2009-03-21 |
| 5 |
changes: |
| 6 |
- (bug #20594) require CSS.pm version 1.07 to fix some 'make test' |
| 7 |
errors (eg, DokuWiki) |
| 8 |
- improve some documentation |
| 9 |
|
| 10 |
version: 0.67 |
| 11 |
date: 2009-03-16 |
| 12 |
changes: |
| 13 |
- add 'p_strict' attribute for enabling/disabling |
| 14 |
HTML::TreeBuilder's p_strict option (enabled by default) -- this |
| 15 |
was done for the Markdown dialect, specifically for bug #43997 |
| 16 |
- mention XML::Writer requirement in README if cgi app is installed |
| 17 |
- webapp-install script creates webapp directory if necessary |
| 18 |
- miscellaneous minor code cleanup |
| 19 |
|
| 20 |
version: 0.66 |
| 21 |
date: 2009-03-07 |
| 22 |
changes: |
| 23 |
- fix test suite: change html2wiki/test.html to |
| 24 |
html2wiki-old/test.html |
| 25 |
- rudimentary webapp-install script |
| 26 |
|
| 27 |
version: 0.65 |
| 28 |
date: 2009-03-07 |
| 29 |
changes: |
| 30 |
- web app fixes: comment-out the donation link in |
| 31 |
templates/main.html, improved docs in cgi/index.cgi |
| 32 |
|
| 33 |
version: 0.64 |
| 34 |
date: 2009-03-06 |
| 35 |
changes: |
| 36 |
- add web application, HTML::WikiConverter::WebApp |
| 37 |
- now requires CGI::Application (for the aforementioned web app) |
| 38 |
- (bug #40845, debian #506584) allow relative wiki_uri (eg, |
| 39 |
"/wiki/"); an absolute wiki_uri is constructed from a relative |
| 40 |
wiki_uri and a base_uri |
| 41 |
- add perl license to Makefile.PL |
| 42 |
|
| 43 |
version: 0.63 |
| 44 |
date: 2008-11-11 |
| 45 |
changes: |
| 46 |
- improved support for nested blocked elements (needed, e.g., for |
| 47 |
MediaWiki support of 'p' elements within table cells, bug #37911) |
| 48 |
|
| 49 |
version: 0.62 |
| 50 |
date: 2008-05-16 |
| 51 |
changes: |
| 52 |
- blocked elements are not blocked if they are contained within a |
| 53 |
blocked element (with much thanks to Dominick Bellizzi for the |
| 54 |
patch) |
| 55 |
- rules_for_tag() now dereferences the 'alias' subrule |
| 56 |
|
| 57 |
version: 0.61 |
| 58 |
date: 2006-07-21 |
| 59 |
changes: |
| 60 |
- add HTML::Element and CSS prereqs for Normalizer.pm so that |
| 61 |
'make test' succeeds |
| 62 |
|
| 63 |
version: 0.60 |
| 64 |
date: 2006-07-20 |
| 65 |
changes: |
| 66 |
- add CSS-to-HTML normalization so, for example, |
| 67 |
'<font style="font-weight:bold">text</font>' will be interpreted |
| 68 |
as '<b>text</b>' before conversion to wiki markup |
| 69 |
- CSS-to-HTML normalization, which is enabled by default, can |
| 70 |
be disabled by setting the 'normalize' to a false value |
| 71 |
- add 'passthrough_naked_tags' attribute, which accepts a list of |
| 72 |
tags to be replaced with their content if the tags contain no |
| 73 |
attributes |
| 74 |
- add on-demand rule-loading so that rules that depend on |
| 75 |
attribute values will be updated when attributes are updated |
| 76 |
- add "UNKNOWN" rule as a catch-all for unknown tags |
| 77 |
- HTML can now be fetched from a URI by passing a 'uri' option to |
| 78 |
the html2wiki() method |
| 79 |
- the user agent used to fetch content from a URI can be specified |
| 80 |
in the 'user_agent' attribute |
| 81 |
- add 'passthrough' subrule for dialect module authors |
| 82 |
- rename 'remove_empty' to 'strip_empty_tags' for consistency with |
| 83 |
other attributes |
| 84 |
- improve handling of 'strip_empty_tags' attribute so that elements |
| 85 |
containing only whitespace are considered empty |
| 86 |
- documentation tweaks, including better synopsis [todo] |
| 87 |
|
| 88 |
version: 0.55 |
| 89 |
date: 2006-06-08 |
| 90 |
changes: |
| 91 |
- (bug #19429) add "escape_entities" attribute |
| 92 |
- html2wiki utility accepts command-line options for all dialect |
| 93 |
attributes |
| 94 |
- all recognized options to html2wiki now displayed with --options |
| 95 |
switch on the command line |
| 96 |
- improved error messages using carp/croak |
| 97 |
|
| 98 |
version: 0.54 |
| 99 |
date: 2006-06-07 |
| 100 |
changes: |
| 101 |
- (bug #19046) allow lone '0' in text (previously such strings were |
| 102 |
assumed empty) |
| 103 |
- (bug #19046) element attributes must be containined on a single |
| 104 |
line |
| 105 |
|
| 106 |
version: 0.53 |
| 107 |
date: 2006-06-03 |
| 108 |
changes: |
| 109 |
- revert "dialects now inherit via 'use HTML::WikiConverter |
| 110 |
-dialect;'" change |
| 111 |
- lots of documentation tweaks |
| 112 |
- allow attributes in html2wiki() |
| 113 |
- add 'remove_empty' attribute (requires HTML::Tagset) |
| 114 |
- add 'slurp' attribute (previously it was just an html2wiki() arg) |
| 115 |
- add eof() call after parse() |
| 116 |
|
| 117 |
version: 0.52 |
| 118 |
date: 2006-03-03 |
| 119 |
changes: |
| 120 |
- document the 'preprocess' attribute |
| 121 |
- remove 'wiki_page_extractor' attribute |
| 122 |
- allow 'wiki_uri' to contain coderefs that were previously used for |
| 123 |
the now-defunct 'wiki_page_extractor' attribute |
| 124 |
- use File::Slurp (if available) for file slurping |
| 125 |
- 'wrap_in_html' now applies to html read from files too |
| 126 |
- fix bug in how 'wrap_in_html' is applied to files (previously it |
| 127 |
was clobbering html read from files) |
| 128 |
- add attribute() function/class method for greater flexibility when |
| 129 |
defining attribs (hence new Params::Validate and |
| 130 |
Class::Data::Inheritable prereqs) |
| 131 |
- coalesce 'strip_*' into 'strip_tags' attribute, which accepts an |
| 132 |
arrayref |
| 133 |
- fix bug in __param() that caused Boolean attributes to return an |
| 134 |
empty string when they were set to a false value |
| 135 |
- dialects now inherit via 'use HTML::WikiConverter -dialect;' |
| 136 |
- dialects no longer have to be within the H::WC namespace |
| 137 |
- rename __param() to _attr() and document its intended use by |
| 138 |
dialect modules |
| 139 |
|
| 140 |
version: 0.51 |
| 141 |
date: 2006-01-29 |
| 142 |
changes: |
| 143 |
- add available_dialects() method, with thanks to Tatsuhiko Miyagawa |
| 144 |
for the code and suggestions |
| 145 |
- add 'preprocess' attribute, which accepts a callback to allow |
| 146 |
client to alter HTML tree prior to html2wiki conversion |
| 147 |
- improve handling of nested block elements to simplify dialect |
| 148 |
rules |
| 149 |
- allow 'wiki_uri' to contain arrayref of wiki URIs, allowing things |
| 150 |
like 'http://en.wikipedia.org/wiki/' and |
| 151 |
'http://en.wikipedia.org/w/index.php?action=edit&title=' to be |
| 152 |
specified simultaneously |
| 153 |
- allow wiki URIs in 'wiki_uri' attribute to be either a string (as before) |
| 154 |
or a regexp, the latter capturing the wiki page title in parentheses |
| 155 |
- add 'wiki_page_extractor' attribute, which accepts a callback that |
| 156 |
extracts a wiki page title given a URI object (see bug #17330) |
| 157 |
- unescape URIs using URI::Escape so that e.g. "%3A" appears as ":" |
| 158 |
in URIs |
| 159 |
|
| 160 |
version: 0.50 |
| 161 |
date: 2006-01-10 |
| 162 |
changes: |
| 163 |
- separate each dialect into is own CPAN package for maintainability |
| 164 |
|
| 165 |
version: 0.41 |
| 166 |
date: 2006-01-09 |
| 167 |
changes: |
| 168 |
- update documentation (no code changes) |
| 169 |
|
| 170 |
version: 0.40 |
| 171 |
date: 2006-01-09 |
| 172 |
changes: |
| 173 |
- (bug 13561) support multiple encodings via 'encoding' attribute |
| 174 |
- (bug 13106) DokuWiki: rename from DocuWiki |
| 175 |
- (bug 13167) PmWiki: handle <a name="anchor"> |
| 176 |
- (bug 13171) PmWiki: inline style rules fixed |
| 177 |
- (bug 14274) MediaWiki: better <nowiki> handling |
| 178 |
- (bug 14527) MediaWiki: better handling of <pre> blocks with empty lines |
| 179 |
- trim whitespace at end of each wiki line |
| 180 |
- html2wiki utility now installed by 'make install' |
| 181 |
- 'wrap_in_html' attribute now enabled by default in H::WC |
| 182 |
|
| 183 |
version: 0.30 |
| 184 |
date: 2005-06-03 |
| 185 |
changes: |
| 186 |
- add support for WakkaWiki, SnipSnap, Oddmuse, and TikiWiki (see |
| 187 |
http://c2.com/cgi/wiki?TopTenWikiEngines) |
| 188 |
- add DokuWiki support for links, blockquotes, images, and tables |
| 189 |
- add 'strip_scripts', 'strip_head', and 'strip_comments' options, |
| 190 |
on by default |
| 191 |
- allow 'start' and 'end' rules to be specified with 'preserve' to |
| 192 |
allow for wiki escaping |
| 193 |
- allow reading from HTML files using "html2wiki( file => ... )" |
| 194 |
- (bug 12944, 12303) preserve HTML entities in text nodes |
| 195 |
- (bug 13017) MediaWiki should allow <i> and <b> to be preserved |
| 196 |
rather than converting to '' and ''' |
| 197 |
- backend API changes; dialect modules now subclass HTML::WikiConverter |
| 198 |
- dialects specify their attributes using the attributes() method |
| 199 |
- more complete tests using larger input HTML file |
| 200 |
- document individual dialects |
| 201 |
- lots of documentation fixes |
| 202 |
|
| 203 |
version: 0.23 |
| 204 |
date: 2005-05-22 |
| 205 |
changes: |
| 206 |
- add DokuWiki dialect (with thanks to Thomas J. Messenger) |
| 207 |
- (bug 12441) allow dialects to post-process wiki markup |
| 208 |
- (bug 12440) add 'empty' rule for elements with no content |
| 209 |
- (bug 12439) unknown HTML elements no longer ignored |
| 210 |
- (bug 12396) added command line tool bin/html2wiki |
| 211 |
- (bug 12395) MoinMoin: added postprocessing step in MoinMoin |
| 212 |
dialect to replace "URL[[BR]]" with "URL [[BR]]" |
| 213 |
- (bug 12433) MediaWiki: added complete set of whitelisted tags and |
| 214 |
attributes from Sanitizer.php |
| 215 |
|
| 216 |
version: 0.22 |
| 217 |
date: 2005-04-25 |
| 218 |
changes: |
| 219 |
- (bug 12393) added 'wrap_in_html' option to wrap HTML input in |
| 220 |
<html> and </html> prior to wiki conversion |
| 221 |
- (bug 12303) MediaWiki: bracketed content is nowiki-escaped if it |
| 222 |
resembles an external link reference |
| 223 |
- (bug 12438) PmWiki: add <td> whitespace trimming |
| 224 |
|
| 225 |
version: 0.21 |
| 226 |
date: 2005-03-17 |
| 227 |
changes: |
| 228 |
- misc. documentation fixes |
| 229 |
- use '' as default return value from base_uri() method |
| 230 |
- add 'wiki_uri' parameter to specify how wiki links are formed |
| 231 |
- add get_attr_str() and get_wiki_page() utility methods |
| 232 |
- rename elem_contents() to get_elem_contents() for consistency |
| 233 |
- added support for PmWiki |
| 234 |
- fix postprocess whitespace trimming bug; only leading newlines and |
| 235 |
trailing whitespace is trimmed |
| 236 |
- add URI 1.35 requirement (though some earlier versions will |
| 237 |
probably work) |
| 238 |
- fix whitespace trimming in test suite |
| 239 |
- added new tests |
| 240 |
- Kwiki-specific changes: |
| 241 |
- add <strike> as alias of <s> |
| 242 |
- add <caption> preprocessing to convert it into a <p> |
| 243 |
- update wiki link handling code to use get_wiki_page() |
| 244 |
- removed markup around CamelCase links |
| 245 |
- MediaWiki-specific changes: |
| 246 |
- use new get_wiki_page() utility method |
| 247 |
- no longer passes a full URI to basename(); uses URI->path() |
| 248 |
- added support for attributes in <table>, <tr>, and <td> |
| 249 |
- MoinMoin-specific changes: |
| 250 |
- add <caption> preprocessing as in Kwiki |
| 251 |
- make rules less redundant (use 'alias' rule) |
| 252 |
- PhpWiki-specific changes: |
| 253 |
- add <caption> preprocessing as in Kwiki |
| 254 |
- improve support for <dl> |
| 255 |
- UseMod-specific changes: |
| 256 |
- add <caption> preprocessing as in Kwiki |
| 257 |
|
| 258 |
version: 0.20 |
| 259 |
date: 2005-03-12 |
| 260 |
changes: |
| 261 |
- complete rewrite, significant API changes |
| 262 |
- added support for Kwiki, MediaWiki, MoinMoin, PhpWiki, and UseMod |
| 263 |
|
| 264 |
version: 0.17 |
| 265 |
date: 2004-07-07 |
| 266 |
changes: |
| 267 |
- update test suite |
| 268 |
- remove warnings reported by cpan testers |
| 269 |
- lots of documentation additions |
| 270 |
- MediaWiki changes: |
| 271 |
- 'wikify_span' now removes elements intended only for URL |
| 272 |
expansion (as used by the MonoBook skin) |
| 273 |
- 'wikify_link' does not wikify anchor tags (i.e. A tags must |
| 274 |
have an HREF attribute) |
| 275 |
- bug fix: table heading markup like "! bgcolor=black !" is now |
| 276 |
properly generated as "! bgcolor=black |" |
| 277 |
- TH now accepts a colspan and rowspan attribute |
| 278 |
- "colspan=1" attribute is now stripped from table cells that |
| 279 |
only span a single column. Likewise for "rowspan" |
| 280 |
- added "taxo_format" option to help format taxoboxes |
| 281 |
- align attribute is now preserved in TH and TD |
| 282 |
- add "add_nowiki" parameter for adding NOWIKI tags around {{messages}} |
| 283 |
- table caption handling using "|+" wiki table markup |
| 284 |
- better nested table handling; a newline is now added before |
| 285 |
the "{|" for nested tables |
| 286 |
- improved handling of image thumbnails |
| 287 |
- now uses warnings, strict |
| 288 |
|
| 289 |
version: 0.16 |
| 290 |
date: 2004-05-28 |
| 291 |
changes: |
| 292 |
- Added 'elem_style_attr_props' method for parsing the STYLE attribute |
| 293 |
- Tags that are meant to be stripped (e.g. HTML, META, HEAD) no |
| 294 |
longer need an empty replacement handler (they can simply be |
| 295 |
excluded from the list of tag handlers) |
| 296 |
- Added handling of non-breaking elements (e.g. in some dialects, |
| 297 |
such as MediaWiki, P tags should not have any embedded newlines) |
| 298 |
- Fixed whitespace handling in H::W::Dialect |
| 299 |
- Documentation additions |
| 300 |
- Added benchmarking option |
| 301 |
- MediaWiki: added colspan and rowspan to allowed TD attrs |
| 302 |
- MW: Now supports 'pretty_tables' option for making nice |
| 303 |
borders/shading |
| 304 |
- MW: Removed arbitrary 20-char limit in conversion of {{...}} magic |
| 305 |
- MW: "[1]"-style links are now handled properly |
| 306 |
- MW: Hex codes/HTML entities in URLs now translated to appropriate |
| 307 |
char (requires URI::Escape) |
| 308 |
- MW: Major list handling cleanup and bug fixes |
| 309 |
- MW: Added new realworld test (my User: page) |
| 310 |
|
| 311 |
version: 0.15 |
| 312 |
date: 2004-05-20 |
| 313 |
changes: |
| 314 |
- Split module into several separate modules |
| 315 |
- HTML::WikiConverter is still the main interface |
| 316 |
- Added support for wiki dialects via HTML::WIkiConverter::Dialect |
| 317 |
interface |
| 318 |
- Added HTML::WikiConverter::Dialect |
| 319 |
- Added HTML::WikiConverter::Dialect::MediaWiki |
| 320 |
- Added HTML::WikiConverter::Dialect::PhpWiki |
| 321 |
- Added HTML::WikiConverter::Dialect::Kwiki |
| 322 |
- Fixed spacing issues in tidy_whitespace |
| 323 |
- Added container, block, and line element handling |
| 324 |
- Now supports multiply-indented blocks |
| 325 |
|
| 326 |
version: 0.14 |
| 327 |
date: 2004-05-17 |
| 328 |
changes: |
| 329 |
- 'wikify_default' now called 'passthru' |
| 330 |
- NOWIKI blocks are no longer preserved |
| 331 |
- Bug fix: Add newline to HTML source before wikification -- avoids |
| 332 |
apparent bugs in HTML::TreeBuilder that prevent proper tag |
| 333 |
handling |
| 334 |
- Added trim method |
| 335 |
- Bug fix: Extra whitespace in PRE blocks no longer trimmed |
| 336 |
- Can now handle "[[language]]s" links (with trailing characters) |
| 337 |
|
| 338 |
version: 0.12 |
| 339 |
date: 2004-05-14 |
| 340 |
changes: |
| 341 |
- Bug fix: removed reference to non-existent 'has_parent' method |
| 342 |
within '_elem_has_ancestor' function |
| 343 |
- Bug fix: fixed potential bug in 'wikify_list_item' which used |
| 344 |
$node->parent->tag eq '...' instead of _elem_has_ancestor($node, |
| 345 |
'...') |
| 346 |
- Now supports definition lists via ; and : |
| 347 |
- Now supports indentation via : |
| 348 |
- Replaced code handler for P tag with flank handler |
| 349 |
- Replaced code handler for OL/UL tags with flank handlers |
| 350 |
- Renamed 'wikify_heading' method to 'wikify_h' for consistency with |
| 351 |
other wikify_* handlers |
| 352 |
- NOWIKI blocks are now preserved |
| 353 |
- Introduced beginnings of Unicode support with the use of HTML |
| 354 |
entities to HTML-escape high-bit characters |
| 355 |
- Added more tests to t/test.t |
| 356 |
|
| 357 |
version: 0.11 |
| 358 |
date: 2004-05-10 |
| 359 |
changes: |
| 360 |
- added wikify_default code handler for tags that should be |
| 361 |
preserved. |
| 362 |
- Added wikify_span |
| 363 |
- Now preserves FONT, SUP, and SUB tags |
| 364 |
- SPAN tags are converted into FONT if possible |
| 365 |
|
| 366 |
version: 0.10 |
| 367 |
date: 2004-05-07 |
| 368 |
changes: |
| 369 |
- Initial release |