Flayms / Markdown2Pdf

.NET library for converting markdown to PDF.
https://www.nuget.org/packages/Markdown2Pdf/
MIT License
5 stars 1 forks source link

Change format of numbering of TOC #44

Closed INOPIAE closed 6 months ago

INOPIAE commented 8 months ago

Currently the numbers in TOC are formatted like this: Level 1 number Level 2 small roman numbers Level 3 - 6 small letters

Adjust formatting to have individual number formatting for each level Adjust formatting to the following: Level 1 Level 1.1 Level 1.1.1

Flayms commented 8 months ago

In general, this is up to the CSS styling of ordered lists. I am planning to bring in some changes though to make this more easily adjustable. Currently the TOC is created first as markdown and then converted to HTML. This needs to be changed so that the HTML gets directly created instead. Then more styling possibilities open up.

INOPIAE commented 8 months ago

I am looking forward to your changes.

Flayms commented 6 months ago

It's now settable with

options.TableOfContents.ListStyle  = ListStyle.Decimal;