slint-ui / document-features

Extract documentation for the feature flags from comments in Cargo.toml
Apache License 2.0
171 stars 11 forks source link

Nested lists #24

Open griffi-gh opened 7 months ago

griffi-gh commented 7 months ago

I am trying to add a nested list in my feature docs (for feature subsets) example:

However, it appears that implementing nested lists is currently not possible, even with the use of hacky workarounds.
I think adding a - (or */extra #) before the feature doc comment should add two spaces before the generated list entry, creating a nested list.

## Enable the built-in font (ProggyTiny, adds 35kb to the executable)
builtin_font = []
## Enable the built-in elements (`Container`, `ProgressBar`, etc.)
builtin_elements = ["builtin_container"]
## - Enable only the `Container` component (which is essential for laying out other components)
builtin_container = []
ogoffart commented 6 months ago

Nice suggestion but I'm not sure how best to do that.

The way you suggest it might not work because it is already valid markdown and it would be confusing that the - is moving the indentation.