Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-270

Add support for recognizing Quoted content

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 4.4
    • API

    Description

      For example in Pegdown, there's a QuotedNode which allows to recognize single quotes, double quotes and double angle quotes. This allows the renderers to output nice quotes.

      For example:

      public void visit(QuotedNode node) {
              switch (node.getType()) {
                  case DoubleAngle:
                      printer.print("«");
                      visitChildren(node);
                      printer.print("»");
                      break;
                  case Double:
                      printer.print("“");
                      visitChildren(node);
                      printer.print("”");
                      break;
                  case Single:
                      printer.print("‘");
                      visitChildren(node);
                      printer.print("’");
                      break;
              }
          }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: