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

Add support for recognizing Quoted content

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.4
    • Fix Version/s: None
    • Component/s: API
    • Labels:
    • Similar issues:

      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

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

              Dates

              Created:
              Updated: