Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-674

New emphasizing filters convention

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 1.0 B2
    • None
    • {Unused} Wiki features
    • None

    Description

      There is a new convention on how and when should styling filters, like __underscore__ and *bold*, should work.

      We define a marker as a formating symbol, like _ for underline and - for strike. We define the marked text as the content being formated, "underlined" in "__underlined__".

      • Q: What hapens if there are more markers than specified, like ~~~italics~~~?
        • A: After studying the behavior of other wiki engines, we decided that the extra markers will be included as marked text, i.e. "~~~italics~~~" will become "<i>~italics~</i>". Fixed behavior
      • Q: What happens if there are spaces between the markers and the marked text?
        • A: The filter should not be applied, i.e. "is this * bold * or not" should remain unformatted. Changed behavior
      • Q: What characters are required before and after the markers?
        • A: The previous behavior was completely inconsistent. Bold required spaces, italics didn't have any requirements, strike forbade '-' and 'Unable to render embedded object: File ('. Now, all filters work without any requirements, except strike, which still forbids ') not found.' before the filter. Fixed behavior

      Attachments

        Issue Links

          Activity

            People

              sdumitriu Sergiu Dumitriu
              sdumitriu Sergiu Dumitriu
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: