improve docstrings
This commit is contained in:
@@ -1,9 +1,22 @@
|
||||
"""Micron markup renderer for Ren Browser.
|
||||
|
||||
Provides rendering capabilities for micron markup content,
|
||||
currently implemented as a placeholder.
|
||||
"""
|
||||
import flet as ft
|
||||
|
||||
|
||||
def render_micron(content: str) -> ft.Control:
|
||||
"""Render micron markup content to a Flet control placeholder.
|
||||
|
||||
Currently displays raw content.
|
||||
|
||||
Args:
|
||||
content: Micron markup content to render.
|
||||
|
||||
Returns:
|
||||
ft.Control: Rendered content as a Flet control.
|
||||
|
||||
"""
|
||||
return ft.Text(
|
||||
content,
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
"""Plaintext renderer for Ren Browser.
|
||||
|
||||
Provides fallback rendering for plaintext content and source viewing.
|
||||
"""
|
||||
import flet as ft
|
||||
|
||||
|
||||
def render_plaintext(content: str) -> ft.Control:
|
||||
"""Fallback plaintext renderer: displays raw text safely in a monospace, selectable control.
|
||||
"""
|
||||
"""Fallback plaintext renderer: displays raw text safely in a monospace, selectable control."""
|
||||
return ft.Text(
|
||||
content,
|
||||
selectable=True,
|
||||
|
||||
Reference in New Issue
Block a user