Skip to content

Commit

Permalink
Added a examples to functions for lucee docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cfmitrah committed Oct 27, 2023
1 parent b585def commit 1b6216c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A string or a variable that contains one
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A string containing XSL text
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
```luceescript+trycf
string = "Susi Sorglos";
writeDump(string.findLastNoCase("s"));
writeDump(string.findLastNoCase("s",1));
writeDump(string.findLastNoCase("S",4));
```
18 changes: 18 additions & 0 deletions docs/03.reference/05.objects/string/markdowntohtml/_examples.md
Original file line number Diff line number Diff line change
@@ -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() );
```

0 comments on commit 1b6216c

Please sign in to comment.