improve docstrings

This commit is contained in:
2025-09-20 13:56:16 -05:00
parent 069967cb51
commit 2aa9afeb15
2 changed files with 18 additions and 2 deletions

View File

@@ -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,

View File

@@ -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,