Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
4.4
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; } }