Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public class FlexmarkHtmlConverter {
final public static DataKey<Character> UNORDERED_LIST_DELIMITER = new DataKey<>("UNORDERED_LIST_DELIMITER", '*');
final public static DataKey<Integer> DEFINITION_MARKER_SPACES = new DataKey<>("DEFINITION_MARKER_SPACES", 3);
final public static DataKey<Integer> MIN_SETEXT_HEADING_MARKER_LENGTH = new DataKey<>("MIN_SETEXT_HEADING_MARKER_LENGTH", 3);
final public static DataKey<Integer> LIST_ITEM_INDENT = new DataKey<>("LIST_ITEM_INDENT", 4);
final public static DataKey<String> CODE_INDENT = new DataKey<>("CODE_INDENT", " ");
final public static DataKey<String> NBSP_TEXT = new DataKey<>("NBSP_TEXT", " ");
final public static DataKey<String> EOL_IN_TITLE_ATTRIBUTE = new DataKey<>("EOL_IN_TITLE_ATTRIBUTE", " ");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public class HtmlConverterOptions implements MutableDataSetter {
public char unorderedListDelimiter;
public int definitionMarkerSpaces;
public int minSetextHeadingMarkerLength;
public int listItemIndent;
public String codeIndent;
public String eolInTitleAttribute;
public String nbspText;
Expand Down Expand Up @@ -118,6 +119,7 @@ public HtmlConverterOptions(HtmlConverterOptions other) {
unorderedListDelimiter = other.unorderedListDelimiter;
definitionMarkerSpaces = other.definitionMarkerSpaces;
minSetextHeadingMarkerLength = other.minSetextHeadingMarkerLength;
listItemIndent = other.listItemIndent;
codeIndent = other.codeIndent;
eolInTitleAttribute = other.eolInTitleAttribute;
nbspText = other.nbspText;
Expand Down Expand Up @@ -184,6 +186,7 @@ public HtmlConverterOptions(DataHolder options) {
unorderedListDelimiter = FlexmarkHtmlConverter.UNORDERED_LIST_DELIMITER.get(options);
definitionMarkerSpaces = FlexmarkHtmlConverter.DEFINITION_MARKER_SPACES.get(options);
minSetextHeadingMarkerLength = Utils.minLimit(FlexmarkHtmlConverter.MIN_SETEXT_HEADING_MARKER_LENGTH.get(options), 3);
listItemIndent = FlexmarkHtmlConverter.LIST_ITEM_INDENT.get(options);
codeIndent = FlexmarkHtmlConverter.CODE_INDENT.get(options);
eolInTitleAttribute = FlexmarkHtmlConverter.EOL_IN_TITLE_ATTRIBUTE.get(options);
nbspText = FlexmarkHtmlConverter.NBSP_TEXT.get(options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ private void handleListItem(HtmlNodeConverterContext context, HtmlMarkdownWriter

listState.itemCount++;
CharSequence itemPrefix = listState.getItemPrefix(this.myHtmlConverterOptions);
int count = myHtmlConverterOptions.listContentIndent ? itemPrefix.length() : 4;
int count = myHtmlConverterOptions.listContentIndent ? itemPrefix.length() : myHtmlConverterOptions.listItemIndent;
CharSequence childPrefix = RepeatedSequence.repeatOf(" ", count);

out.line().append(itemPrefix);
Expand Down