toggle menu
shake
0.1.0
common
switch theme
search in API
com.shakelang.util.markdown
/
com.shakelang.util.markdown
/
MutableMarkdownDocument
Mutable
Markdown
Document
class
MutableMarkdownDocument
:
MarkdownContext
,
MarkdownDocument
(
source
)
Members
Constructors
Mutable
Markdown
Document
Link copied to clipboard
constructor
(
creator
:
MutableMarkdownDocument
.
(
)
->
Unit
)
constructor
(
)
Properties
elements
Link copied to clipboard
abstract
val
elements
:
List
<
MarkdownElement
>
Functions
bold
Link copied to clipboard
fun
bold
(
creator
:
MarkdownContext
.
(
)
->
Unit
)
:
Boolean
fun
bold
(
elements
:
List
<
MarkdownElement
>
)
:
Boolean
code
Link copied to clipboard
fun
code
(
code
:
String
,
type
:
String
=
""
)
:
Boolean
h1
Link copied to clipboard
fun
h1
(
text
:
String
)
:
Boolean
h2
Link copied to clipboard
fun
h2
(
text
:
String
)
:
Boolean
h3
Link copied to clipboard
fun
h3
(
text
:
String
)
:
Boolean
h4
Link copied to clipboard
fun
h4
(
text
:
String
)
:
Boolean
h5
Link copied to clipboard
fun
h5
(
text
:
String
)
:
Boolean
h6
Link copied to clipboard
fun
h6
(
text
:
String
)
:
Boolean
header
Link copied to clipboard
fun
header
(
text
:
String
,
level
:
Int
=
1
)
:
Boolean
html
Link copied to clipboard
fun
html
(
html
:
String
)
:
Boolean
image
Link copied to clipboard
fun
image
(
url
:
String
,
creator
:
MarkdownContext
.
(
)
->
Unit
)
:
Boolean
fun
image
(
text
:
String
,
url
:
String
)
:
Boolean
italic
Link copied to clipboard
fun
italic
(
creator
:
MarkdownContext
.
(
)
->
Unit
)
:
Boolean
fun
italic
(
elements
:
List
<
MarkdownElement
>
)
:
Boolean
link
Link copied to clipboard
fun
link
(
url
:
String
,
creator
:
MarkdownContext
.
(
)
->
Unit
)
:
Boolean
fun
link
(
text
:
String
,
url
:
String
)
:
Boolean
list
Link copied to clipboard
fun
list
(
elements
:
List
<
MarkdownElement
>
,
ordered
:
Boolean
=
false
)
:
Boolean
ol
Link copied to clipboard
fun
ol
(
vararg
elements
:
MarkdownElement
)
:
Boolean
olist
Link copied to clipboard
fun
olist
(
elements
:
List
<
MarkdownElement
>
)
:
Boolean
p
Link copied to clipboard
fun
p
(
creator
:
MarkdownContext
.
(
)
->
Unit
)
:
Boolean
fun
p
(
text
:
String
)
:
Boolean
quote
Link copied to clipboard
fun
quote
(
creator
:
MarkdownContext
.
(
)
->
Unit
)
:
Boolean
fun
quote
(
elements
:
List
<
MarkdownElement
>
)
:
Boolean
render
Link copied to clipboard
open
override
fun
render
(
)
:
String
strikethrough
Link copied to clipboard
fun
strikethrough
(
creator
:
MarkdownContext
.
(
)
->
Unit
)
:
Boolean
fun
strikethrough
(
elements
:
List
<
MarkdownElement
>
)
:
Boolean
table
Link copied to clipboard
fun
table
(
headers
:
List
<
String
>
,
rows
:
List
<
List
<
MarkdownElement
>
>
)
:
Boolean
text
Link copied to clipboard
fun
text
(
creator
:
MarkdownContext
.
(
)
->
Unit
)
:
Boolean
fun
text
(
text
:
String
)
:
Boolean
ul
Link copied to clipboard
fun
ul
(
vararg
elements
:
MarkdownElement
)
:
Boolean
ulist
Link copied to clipboard
fun
ulist
(
elements
:
List
<
MarkdownElement
>
)
:
Boolean