Package com.atlassian.bitbucket.markup
Class RenderContext.Builder
java.lang.Object
com.atlassian.bitbucket.markup.RenderContext.Builder
- Enclosing class:
- RenderContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Clears any provideddata
.hardwrap
(boolean value) htmlEscape
(boolean value) htmlEscape
(Boolean value) includeHeadingId
(boolean value) includeHeadingId
(Boolean value)
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
build
- Returns:
- the built context
-
clearData
Clears any provideddata
.- Returns:
this
-
data
- Parameters:
value
- a map containing additional data to make available when rendering, which is appended to any existing data- Returns:
this
-
hardwrap
- Parameters:
value
-true
to convert newlines to breaks; otherwise,false
to leave them intact- Returns:
this
-
hardwrap
- Parameters:
value
-TRUE
to convert newlines to breaks;FALSE
to leave them intact; ornull
to use the system-configured default- Returns:
this
- Since:
- 5.11
-
htmlEscape
- Parameters:
value
-true
if HTML should be escaped in the input markup; otherwise,false
to retain HTML- Returns:
this
-
htmlEscape
- Parameters:
value
-TRUE
if HTML should be escaped in the input markup;FALSE
to retain HTML; ornull
to use the system-configured default- Returns:
this
- Since:
- 5.11
-
includeHeadingId
- Parameters:
value
-true
if an ID should be added for each rendered header rendered; otherwise,false
to render headers without IDs- Returns:
this
- Since:
- 5.11
-
includeHeadingId
- Parameters:
value
-TRUE
if an ID should be added for each rendered header rendered;FALSE
to render headers without IDs; ornull
to use the system-configured default- Returns:
this
- Since:
- 5.11
-
urlMode
- Parameters:
value
- the mode to use when rendering URLs- Returns:
this
-