From a6e09ffd371f283249cd90100b807411a0c2181e Mon Sep 17 00:00:00 2001 From: Julien Eluard Date: Thu, 28 Apr 2016 07:43:08 +0200 Subject: [PATCH] Allow customization of class prefix in DefaultVerbatimSerializer --- .../java/org/pegdown/DefaultVerbatimSerializer.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/pegdown/DefaultVerbatimSerializer.java b/src/main/java/org/pegdown/DefaultVerbatimSerializer.java index 888fd0d..a81619c 100644 --- a/src/main/java/org/pegdown/DefaultVerbatimSerializer.java +++ b/src/main/java/org/pegdown/DefaultVerbatimSerializer.java @@ -6,11 +6,21 @@ public class DefaultVerbatimSerializer implements VerbatimSerializer { public static final DefaultVerbatimSerializer INSTANCE = new DefaultVerbatimSerializer(); + private final String classPrefix; + + public DefaultVerbatimSerializer() { + this(""); + } + + public DefaultVerbatimSerializer(final String classPrefix) { + this.classPrefix = classPrefix; + } + @Override public void serialize(final VerbatimNode node, final Printer printer) { printer.println().print("
");
         String text = node.getText();