Setting default Markdown extras #5548
tomsquest
started this conversation in
Ideas / Feature Requests
Replies: 1 comment 1 reply
-
|
Hi @tomsquest, I agree that a static list of default extras would be useful. Let's convert this discussion into a feature request! The implementation shouldn't be too hard. But I think we should wait for a solution to #4857 where we're currently thinking about signatures with default values. As a workaround, you could derive a custom Markdown element: class CuddlyMarkdown(Markdown):
def __init__(self, content: str = '') -> None:
super().__init__(content, extras=['fenced-code-blocks', 'tables', 'cuddled-lists']) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Example Code
Description
Some LLM models sometime forget to add a separator line between a bulleted list.
The markdown extension
cuddle-listssolves this.But adding it to the extras each time
ui.markdownis used is tedious (and error prone)NiceGUI Version
3.3.1
Python Version
3.13.7
Browser
Firefox
Operating System
Linux
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions