Skip to content

Commit

Permalink
Merge pull request #31 from coskuipek/main
Browse files Browse the repository at this point in the history
UnorderedListGlyph added to MarkdownRendererOptions
  • Loading branch information
christiaanderidder authored Feb 16, 2024
2 parents 64cf877 + 5c5e938 commit 11f6c90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/QuestPDF.Markdown/MarkdownRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private IContainer ProcessContainerBlock(ContainerBlock block, IContainer pdf)
container.Row(li =>
{
li.Spacing(5);
li.AutoItem().PaddingLeft(10).Text(list.IsOrdered ? $"{listItem.Order}{list.OrderedDelimiter}" : "•");
li.AutoItem().PaddingLeft(10).Text(list.IsOrdered ? $"{listItem.Order}{list.OrderedDelimiter}" : _options.UnorderedListGlyph);
ProcessBlock(item, li.RelativeItem());
});
}
Expand Down
2 changes: 2 additions & 0 deletions src/QuestPDF.Markdown/MarkdownRendererOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ public class MarkdownRendererOptions

public float ParagraphSpacing { get; set; } = 10;
public float ListItemSpacing { get; set; } = 5;
public string UnorderedListGlyph { get; set; } = "•";

}

0 comments on commit 11f6c90

Please sign in to comment.