Issue Details (XML | Word | Printable)

Key: XWIKI-2962
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Thomas Mortagne
Reporter: Vincent Massol
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XWiki Core

Write automatic converter from XWiki Syntax 1.0 to XWiki Syntax 2.0

Created: 09/Dec/08 12:08   Updated: 13/Jan/09 12:15
Component/s: Rendering 2.0
Affects Version/s: 1.7 RC1
Fix Version/s: 1.8 M1

Issue Links:
Dependency
 

Date of First Response: 08/Jan/09 17:45
Resolution Date: 13/Jan/09 12:15
Tests: Unit


 Description  « Hide
To ease migration to XWiki Syntax 2.0 and thus to the new WYSIWYG.

See http://dev.xwiki.org/xwiki/bin/view/Drafts/SyntaxMigrationGuide and http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax

Things to convert

  • Bold syntax
  • Italic syntax
  • Link syntax
  • List syntax
    • 2.0 support a paragraph but 1.0 stop at first found new line
    • mixed syntaxes are not supported
  • Section syntax
    • 2.0 support a paragraph but 1.0 stop at first found new line
    • section consume all following new lines
  • Pre macro
    • spaces and new lines are not taken into account (the HTML way)
  • Radeox macros
    • code
      • never inline
      • executed before anything else, even velocity
      • support mixed parameters types (with or without the key)
    • attach
      • always inline
      • support mixed parameters types (with or without the key)
    • chart (depends on XWIKI-2883)
    • image
      • always inline
      • support mixed parameters types (with or without the key)
    • jira (depends on XWIKI-3078)
    • quote
    • rss (depends on XWIKI-2882)
    • style (depends on XWIKI-2967)
    • table
      • never inline
    • field
    • display
    • form
    • graphviz
    • laszlo
    • svg
  • Velocity macros
    • include
      • always inline
    • toc
      • never inline
    • info, warning, error (depends on XWIKI-2968)
      • always inline
  • enclose velocity code velocity macro
  • enclose html code html macro
  • single new line are generally not taken into account in 1.0
  • escape pure 2.0 syntax

Things not convertible

  • 1.0 syntax generated by Velocity


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Thomas Mortagne added a comment - 08/Jan/09 17:45
First version of the 1.0 parser committed

Main TODO:

  • support velocity and html
  • javadoc