Discover Packages
github.com/iiatlas/mdv
internal
render
package
Version:
v1.2.0
Opens a new window with list of versions in this module.
Published: Oct 22, 2025
License: MIT
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
ResolveTheme(theme, themeLight, themeDark)
ToANSI(src, theme, themeLight, themeDark, wrap)
ToHTML(src, theme, themeLight, themeDark, width, mdFilePath)
Types
Source Files
Documentation
Documentation
¶
Constants
func ResolveTheme(theme, themeLight, themeDark string) string
func ToANSI(src []byte, theme, themeLight, themeDark string, wrap int) (string, error)
func ToHTML(src []byte, theme, themeLight, themeDark, width, mdFilePath string) ([]byte, error)
View Source
const (
ThemeAuto = "auto"
ThemeLight = "light"
ThemeDark = "dark"
)
Built-in theme names that map to embedded CSS files
func ResolveTheme(theme, themeLight, themeDark string ) string
ResolveTheme resolves "auto" to the system theme, or returns the theme as-is.
When theme is "auto", it detects the system's dark/light preference and uses
themeLight or themeDark if they are set, otherwise falls back to "light" or "dark".
func ToHTML(src []byte , theme, themeLight, themeDark, width, mdFilePath string ) ([]byte , error )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.