Crates.io | render_readme |
lib.rs | render_readme |
version | 0.11.0 |
source | src |
created_at | 2022-09-03 16:21:28.147166 |
updated_at | 2024-04-07 17:49:42.53655 |
description | Render Markdown or reStructuredText with syntax highlighting and image filtering similar to GitHub's |
homepage | |
repository | https://gitlab.com/lib.rs/render_readme |
max_upload_size | |
id | 657953 |
size | 1,024,569 |
Readme to HTML conversion for lib.rs. It's mostly internal,
Supports:
rst2html
),<span class>
. Actual theme colors are in the style subproject.Install docutils
package, so that rst2html
command is available (in PATH
).
It needs to write a file to system's temp directory for rst2html
. If you clear temp while the program is running, rst support may fail.
It generates HTML <span>
class names based on scope names from Sublime Syntax files, but:
highlight.rs
for the list of abbreviations.All languages are precompiled from syntaxes/
submodule.
tmLanguage
definitions need to be converted first.