sander / code-illuminated

Automatically exported from code.google.com/p/code-illuminated
0 stars 0 forks source link

Can't embed links or images in tables #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to render the following mark-up
|= Header 1 |= Header 2 |
| [[http://www.ibm.com|Big Corp]] | some text in col 2 |
| {{http://www.wikicreole.org/attach/LeftMenu/viki.png|Creole 1.0}} | more
text in col 2 |

You can use the textbox at
http://www.ivan.fomichev.name/2008/04/javascript-creole-10-wiki-markup-parser.ht
ml
to test.

What is the expected output? What do you see instead?
The link should be rendered as a <a> element and the image as a <img> element.

What version of the product are you using? On what operating system?
code 1.0 rev 12, tested in firefox 3.0.6 and IE 7.0

Please provide any additional information below.

Original issue reported on code.google.com by emerge.update.world on 4 Mar 2009 at 10:07

GoogleCodeExporter commented 9 years ago
WikiCreole 1.0 doesn't explicitly specify you can embed images into tables, see
http://wikicreole.org/wiki/Creole1.0#section-Creole1.0-Tables

However, I think it is not a problem to make it possible. Let me see what I can 
do.

Original comment by ifomic...@gmail.com on 9 Mar 2009 at 9:38

GoogleCodeExporter commented 9 years ago
Fixed in 0.2.0

There is a new option: 'strict', which is false by default. A non-strict parser
allows images in tables and images with no alternative text.

Original comment by ifomic...@gmail.com on 21 Mar 2009 at 4:44

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in release 23, updating wikicreole parser. Thanks Ivan.

Tested with the following text:

// ** {{{ Test image in table }}} **
// |= Header 1 |= Header 2 |
// | [[http://www.ibm.com|Big Corp]] | some text in col 2 |
// | {{http://www.wikicreole.org/attach/LeftMenu/viki.png|Creole 1.0}} | more 
text in
col 2 |

Original comment by albertos...@gmail.com on 22 Mar 2009 at 9:17