diff --git a/ant/build-core.xml b/ant/build-core.xml
index 64dd2f7e3c..ae503ef475 100644
--- a/ant/build-core.xml
+++ b/ant/build-core.xml
@@ -165,6 +165,9 @@
+
+
+
@@ -248,7 +251,7 @@
-
+
diff --git a/ant/build-extensions.xml b/ant/build-extensions.xml
index af160deb1f..a3e97af556 100644
--- a/ant/build-extensions.xml
+++ b/ant/build-extensions.xml
@@ -4,10 +4,21 @@
+
@@ -194,6 +206,9 @@
+
+
+
@@ -346,7 +361,18 @@
tofile="${goal}/extensions/${ext_compress.filename}"/>
add:${goal}/extensions/${ext_compress.filename}
${ext_compress.filename};
-
+
+
+
+
+
+
+ add:${goal}/extensions/${ext_markdown.filename}
+ ${ext_markdown.filename};
diff --git a/core/pom.xml b/core/pom.xml
index 3837f7a806..05361fc078 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -358,12 +358,6 @@
5.13.0
provided
-
- org.lucee
- commonmark
- 0.22.0
- provided
-
org.lucee
janino
diff --git a/core/src/main/java/META-INF/MANIFEST.MF b/core/src/main/java/META-INF/MANIFEST.MF
index c804b34d4a..ce904c4c81 100644
--- a/core/src/main/java/META-INF/MANIFEST.MF
+++ b/core/src/main/java/META-INF/MANIFEST.MF
@@ -357,7 +357,6 @@ Require-Bundle: org.apache.commons.commons-codec;bundle-version=1.15.0,
com.github.mwiede.jsch;bundle-version=0.2.21,
org.lucee.jzlib;bundle-version=1.1.3,
com.sun.jna;bundle-version=5.13.0,
- org.lucee.commonmark;bundle-version=0.22.0,
com.github.f4b6a3.ulid;bundle-version=5.2.3,
org.lucee.janino;bundle-version=3.1.9,
org.lucee.janinocc;bundle-version=3.1.9
@@ -372,4 +371,5 @@ Require-Extension: 7E673D15-D87C-41A6-8B5F1956528C605F;name=MySQL;label=MySQL;ve
66E312DD-D083-27C0-64189D16753FD6F0;name=PDF;label=PDF;version=1.2.0.10,
B737ABC4-D43F-4D91-8E8E973E37C40D1B;name=Image;label=Image;version=2.0.0.26;since=5.3.0.35-ALPHA,
37C61C0A-5D7E-4256-8572639BE0CF5838;name=Esapi;label=ESAPI;version=2.2.4.17-SNAPSHOT;since=5.3.0.37-ALPHA,
- 8D7FB0DF-08BB-1589-FE3975678F07DB17;name=Compress;label=Compress;version=1.0.0.15;since=5.3.2.31-SNAPSHOT
+ 8D7FB0DF-08BB-1589-FE3975678F07DB17;name=Compress;label=Compress;version=1.0.0.15;since=5.3.2.31-SNAPSHOT,
+ 3AEDA748-F62B-42E3-8E8DC5AE0DDABE09;name=Markdown;label=Markdown;version=1.0.0.0
diff --git a/core/src/main/java/lucee/runtime/functions/string/MarkdownToHTML.java b/core/src/main/java/lucee/runtime/functions/string/MarkdownToHTML.java
deleted file mode 100644
index 836635a2a3..0000000000
--- a/core/src/main/java/lucee/runtime/functions/string/MarkdownToHTML.java
+++ /dev/null
@@ -1,48 +0,0 @@
-package lucee.runtime.functions.string;
-
-import org.commonmark.node.Node;
-import org.commonmark.parser.Parser;
-import org.commonmark.renderer.html.HtmlRenderer;
-
-import lucee.runtime.PageContext;
-import lucee.runtime.exp.FunctionException;
-import lucee.runtime.exp.PageException;
-import lucee.runtime.ext.function.BIF;
-import lucee.runtime.ext.function.Function;
-import lucee.runtime.op.Caster;
-
-public class MarkdownToHTML extends BIF implements Function {
-
- private static final long serialVersionUID = 3775127934350736736L;
-
- @Override
- public Object invoke(PageContext pc, Object[] args) throws PageException {
- if (args.length < 1 || args.length > 2) {
- throw new FunctionException(pc, "MarkdownToHTML", 1, 2, args.length);
- }
- return call(pc, Caster.toString(args[0]));
- }
-
- public static String call(PageContext pc, String markdown) {
- return call(pc, markdown, false, null);
- }
-
- public static String call(PageContext pc, String markdown, boolean safeMode) {
- return call(pc, markdown, safeMode, null);
- }
-
- public static String call(PageContext pc, String markdown, boolean safeMode, String encoding) {
- Parser parser = Parser.builder().build();
- // Parse the markdown to a Node
- Node document = parser.parse(markdown);
- // Create a HTML renderer
- HtmlRenderer renderer = HtmlRenderer.builder().build();
- // Render the Node to HTML
- return renderer.render(document);
- }
-
- /*
- * public static void main(String[] args) { print.e(Processor.process("This is ***TXTMARK***",
- * false)); }
- */
-}
\ No newline at end of file
diff --git a/core/src/main/java/resource/fld/core-base.fld b/core/src/main/java/resource/fld/core-base.fld
index 6801064a3d..78de8aebef 100755
--- a/core/src/main/java/resource/fld/core-base.fld
+++ b/core/src/main/java/resource/fld/core-base.fld
@@ -9711,43 +9711,6 @@ mavenLoad([
-
-
-
-
- MarkdownToHTML
- MarkdownToHTML
- lucee.runtime.functions.string.MarkdownToHTML
- string
- Transforms Markdown formatted String into HTML.
- 6.0.0.150
-
- string
- markdown
- string
- Yes
- A Markdown formatted string or a path to a file containf a markdown formatted string to convert to HTML
-
-
- safeMode
- boolean
- safe
- false
- No
- If set to true it does escape unsafe HTML tags
-
-
- encoding
- string
- charset
- No
- Charset, only used in case the argument markdown contains a file path
-
-
- string
-
-
-
LuceeCreateAISession
diff --git a/loader/pom.xml b/loader/pom.xml
index d7c6e5fff5..b7902c1120 100644
--- a/loader/pom.xml
+++ b/loader/pom.xml
@@ -648,12 +648,6 @@
5.13.0
provided
-
- org.lucee
- commonmark
- 0.22.0
- provided
-
org.lucee
janino