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

Strikethrough XWiki syntax

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Minor
    • 1.3 M2
    • None
    • {Unused} Wiki features
    • None
    • Unit

    Description

      The strikethrough wiki markup is triggered by placing a piece of text inside double-dashes, like: --text--. This filter only works in single line mode.

      It generates markup specifying that the delimited text is deleted; in XHTML the <del> tag is used.

      Expected behavior:

      This is not -- stroked --  => This is not -- stroked --
      This is not --stroked --  => This is not --stroked --
      This is not -- stroked--  => This is not -- stroked--
      This is --stroked-- => This is <del>stroked</del>
      This is --a-- stroke => This is <del>a</del> stroke
      This is --a-- short stroke-- => This is <del>a</del> short stroke--
      This is --all -- stroked-- => This is <del>all -- stroked</del>
      This is --all --stroked-- => This is <del>all --stroked</del>
      This is --one--stroked-- => This is <del>one</del>stroked--
      --a-- => <del>a</del>
      More --strokes-- on a --line-- => More <del>strokes</del> on a <del>line</del>
      The extra dashes are ----inside--- => The extra dashes are <del>--inside-</del>
      This--is--stroked => This<del>is</del>stroked
      --Eeny--meeny--miny--moe-- => <del>Eeny</del>meeny<del>miny</del>moe--
      -- Eeny--meeny--miny--moe-- => ...<li>Eeny<del>meeny</del>miny<del>moe</del></li>...
      this is a ------ line => this is a <hr/> line
      -- this is a list item-- => ...<li>this is a list item--</li>...
      HTML <!-- comments are ignored --> => HTML <!-- comments are ignored -->
      Multiple HTML <!-- comments --> are <!-- ignored --> => Multiple HTML <!-- comments --> are <!-- ignored -->
      Ignore --things-- inside <script> n = --i; m = i--; </script> => Ignore <del>things</del> inside <script> n = --i; m = i--; </script>
      Ignore <a href="/some--page--with--dashes">attributes</a> => Ignore <a href="/some--page--with--dashes">attributes</a>
      
      Multiline examples:
      This is not --not
      stroked--
       => 
      This is not --not
      stroked--
      
      <script>
      m = --i; n = i--;
      </script>
      m = --i; n = i--;
       =>
      <script>
      m = --i; n = i--;
      </script>
      m = <del>i; n = i</del>;
      

      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: