X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Fmarkdown%2Fnodes%2FCodeNode.java;h=8a421d2937993ecfda8a77339a14ffce9410cf4d;hb=d1c03be9d9294ae408846fb3b3316cf7a866ed35;hp=ec2b64029c0e89c7c750f005c571c75d1bb5c3c7;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git
diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/markdown/nodes/CodeNode.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/markdown/nodes/CodeNode.java
index ec2b64029..8a421d293 100644
--- a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/markdown/nodes/CodeNode.java
+++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/markdown/nodes/CodeNode.java
@@ -1,16 +1,17 @@
-package org.simantics.scl.compiler.markdown.nodes;
-
-import org.simantics.scl.compiler.markdown.internal.HtmlEscape;
-
-public class CodeNode extends Node {
- public CodeNode(StringBuilder stringContent) {
- this.stringContent = stringContent;
- }
-
- @Override
- public void toHtml(StringBuilder b) {
- b.append("");
- b.append(HtmlEscape.escape(stringContent));
- b.append("
");
- }
-}
+package org.simantics.scl.compiler.markdown.nodes;
+
+import org.simantics.scl.compiler.markdown.html.HtmlGenerationContext;
+import org.simantics.scl.compiler.markdown.internal.HtmlEscape;
+
+public class CodeNode extends Node {
+ public CodeNode(StringBuilder stringContent) {
+ this.stringContent = stringContent;
+ }
+
+ @Override
+ public void toHtml(HtmlGenerationContext context, StringBuilder b) {
+ b.append("");
+ b.append(HtmlEscape.escape(stringContent));
+ b.append("
");
+ }
+}