From 1b6216ce727f9a7f950f964cd38ea9577044e227 Mon Sep 17 00:00:00 2001 From: CF Mitrah Date: Fri, 27 Oct 2023 20:49:41 +0530 Subject: [PATCH] Added a examples to functions for lucee docs --- .../stringlen/_arguments/string.md | 1 + .../xmltransform/_arguments/xsl.md | 1 + .../string/findlastnocase/_examples.md | 6 ++++++ .../string/markdowntohtml/_examples.md | 18 ++++++++++++++++++ 4 files changed, 26 insertions(+) create mode 100644 docs/03.reference/05.objects/string/findlastnocase/_examples.md create mode 100644 docs/03.reference/05.objects/string/markdowntohtml/_examples.md diff --git a/docs/03.reference/01.functions/stringlen/_arguments/string.md b/docs/03.reference/01.functions/stringlen/_arguments/string.md index e69de29bb..4c07f96ef 100644 --- a/docs/03.reference/01.functions/stringlen/_arguments/string.md +++ b/docs/03.reference/01.functions/stringlen/_arguments/string.md @@ -0,0 +1 @@ +A string or a variable that contains one \ No newline at end of file diff --git a/docs/03.reference/01.functions/xmltransform/_arguments/xsl.md b/docs/03.reference/01.functions/xmltransform/_arguments/xsl.md index e69de29bb..742b0feca 100644 --- a/docs/03.reference/01.functions/xmltransform/_arguments/xsl.md +++ b/docs/03.reference/01.functions/xmltransform/_arguments/xsl.md @@ -0,0 +1 @@ +A string containing XSL text \ No newline at end of file diff --git a/docs/03.reference/05.objects/string/findlastnocase/_examples.md b/docs/03.reference/05.objects/string/findlastnocase/_examples.md new file mode 100644 index 000000000..72a2e5130 --- /dev/null +++ b/docs/03.reference/05.objects/string/findlastnocase/_examples.md @@ -0,0 +1,6 @@ +```luceescript+trycf +string = "Susi Sorglos"; +writeDump(string.findLastNoCase("s")); +writeDump(string.findLastNoCase("s",1)); +writeDump(string.findLastNoCase("S",4)); +``` \ No newline at end of file diff --git a/docs/03.reference/05.objects/string/markdowntohtml/_examples.md b/docs/03.reference/05.objects/string/markdowntohtml/_examples.md new file mode 100644 index 000000000..504a3f3bf --- /dev/null +++ b/docs/03.reference/05.objects/string/markdowntohtml/_examples.md @@ -0,0 +1,18 @@ +```luceescript+trycf +nl= chr(10); +dNL= nl & nl; + +markdownString="" & +"## Heading1" & dNL & +"###### Simple Paragraph" & dNL & +"Some simple paragraph with a simple text" & dNL & +"###### Ordered List" & dNL & +"- First item" & nl & +"- Second item" & nl & +"- Third item" & dNL & +"###### Some Blockquotes" & dNL & +"> This is some blockquoted text" & nl & +">> Blockquoted text with indentation" & dNL; + +echo( markdownString.markdownToHtml() ); +``` \ No newline at end of file