s
This commit is contained in:
14
.gitignore
vendored
14
.gitignore
vendored
@@ -1,4 +1,13 @@
|
||||
|
||||
# Additional ignore files and directories
|
||||
Thumbs.db
|
||||
# Logs
|
||||
logs/
|
||||
*.log
|
||||
*.out
|
||||
# Compiled Python files
|
||||
*.pyc
|
||||
*.pyo
|
||||
__pycache__/
|
||||
*dSYM/
|
||||
.vmodules/
|
||||
.vscode
|
||||
@@ -28,4 +37,5 @@ output/
|
||||
.stellar
|
||||
data.ms/
|
||||
test_basic
|
||||
cli/hero
|
||||
cli/hero
|
||||
.aider*
|
||||
|
||||
@@ -18,6 +18,11 @@ fn test_parse_fenced_code_block_basic() {
|
||||
assert element.attributes['language'] == ''
|
||||
assert element.line_number == 1
|
||||
assert element.column == 1
|
||||
|
||||
// Parser position should be at the start of the next line
|
||||
assert parser.pos == 5 // "```\n" is 3 characters
|
||||
assert parser.line == 2
|
||||
assert parser.column == 1
|
||||
}
|
||||
|
||||
fn test_parse_fenced_code_block_with_language() {
|
||||
|
||||
@@ -1 +1,30 @@
|
||||
depends on https://github.com/vlang/markdown/tree/master
|
||||
# Markdown Renderer Module
|
||||
|
||||
This module provides functionality for rendering Markdown content in various formats.
|
||||
|
||||
## Features
|
||||
|
||||
- Supports multiple rendering formats (e.g., HTML, plain text, structure)
|
||||
- Utilizes the V language Markdown parser
|
||||
- Customizable rendering options
|
||||
|
||||
## Usage
|
||||
|
||||
```v
|
||||
import freeflowuniverse.herolib.data.markdownrenderer
|
||||
|
||||
// Example usage
|
||||
md_text := '# Hello World\n\nThis is a paragraph.'
|
||||
html_output := markdownrenderer.to_html(md_text)
|
||||
plain_output := markdownrenderer.to_plain(md_text)
|
||||
structure_output := markdownrenderer.to_structure(md_text)
|
||||
```
|
||||
|
||||
## Dependencies
|
||||
|
||||
This module depends on the V language Markdown parser:
|
||||
https://github.com/vlang/markdown/tree/master
|
||||
|
||||
For more detailed information, refer to the individual renderer implementations in this module.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user