toggle menu
KSLCore
R1.1.3
jvm
switch theme
search in API
KSLCore
/
ksl.utilities.io
/
MarkDown
Mark
Down
object
MarkDown
A class to facilitate construction of markdown elements
Members
Types
Col
Fmt
Link copied to clipboard
enum
ColFmt
:
Enum
<
MarkDown.ColFmt
>
Table
Link copied to clipboard
class
Table
(
colHeaders
:
List
<
String
>
,
formats
:
List
<
MarkDown.ColFmt
>
=
allSame(colHeaders.size, ColFmt.LEFT)
)
Properties
D2FORMAT
Link copied to clipboard
val
D2FORMAT
:
DecimalFormat
D3FORMAT
Link copied to clipboard
val
D3FORMAT
:
DecimalFormat
Functions
all
Centered
Link copied to clipboard
fun
allCentered
(
nCols
:
Int
)
:
List
<
MarkDown.ColFmt
>
all
Left
Link copied to clipboard
fun
allLeft
(
nCols
:
Int
)
:
List
<
MarkDown.ColFmt
>
all
Right
Link copied to clipboard
fun
allRight
(
nCols
:
Int
)
:
List
<
MarkDown.ColFmt
>
all
Same
Link copied to clipboard
fun
allSame
(
nCols
:
Int
,
format
:
MarkDown.ColFmt
)
:
List
<
MarkDown.ColFmt
>
block
Quote
Link copied to clipboard
fun
blockQuote
(
text
:
String
?
)
:
String
bold
Link copied to clipboard
fun
bold
(
text
:
String
?
)
:
String
bold
And
Italic
Link copied to clipboard
fun
boldAndItalic
(
text
:
String
?
)
:
String
code
Link copied to clipboard
fun
code
(
text
:
String
?
)
:
String
header
Link copied to clipboard
fun
header
(
header
:
String
?
,
hLevel
:
Int
)
:
String
h
Rule
Link copied to clipboard
fun
hRule
(
)
:
String
image
Link copied to clipboard
fun
image
(
altText
:
String
?
,
imageURL
:
String
?
)
:
String
italic
Link copied to clipboard
fun
italic
(
text
:
String
?
)
:
String
link
Link copied to clipboard
fun
link
(
linkText
:
String
?
,
linkURL
:
String
?
)
:
String
n
List
Link copied to clipboard
fun
nList
(
list
:
List
<
String
?
>
)
:
String
table
Header
Link copied to clipboard
fun
tableHeader
(
colHeaders
:
List
<
String
>
,
formats
:
List
<
MarkDown.ColFmt
>
)
:
String
fun
tableHeader
(
colHeaders
:
List
<
String
>
,
format
:
MarkDown.ColFmt
=
ColFmt.LEFT
)
:
String
table
Row
Link copied to clipboard
fun
tableRow
(
elements
:
List
<
String
>
)
:
String
fun
tableRow
(
rowLabel
:
String
?
=
null
,
array
:
DoubleArray
,
df
:
DecimalFormat
?
=
D3FORMAT
)
:
String
un
List
Link copied to clipboard
fun
unList
(
list
:
List
<
String
?
>
)
:
String