https://github.com/humansinput/creole
Tcl library for parsing Creole-formatted text.
https://github.com/humansinput/creole
Last synced: about 1 month ago
JSON representation
Tcl library for parsing Creole-formatted text.
- Host: GitHub
- URL: https://github.com/humansinput/creole
- Owner: humansinput
- Created: 2019-11-07T15:04:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-08T15:12:26.000Z (over 5 years ago)
- Last Synced: 2025-05-07T09:12:03.102Z (about 1 month ago)
- Language: Tcl
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.asciidoc
Awesome Lists containing this project
README
= Tcl Creole parser
_Copyright (C) Tim K/RoverAMD 2019 _
== Usage
[source,tcl]
----
source creole.tclset markup {Hello, I love [[http://tcl.tk|Tcl]] and //**cats**//!}
set converted [rovcreole::toHtml $markup] ;# rovcreole::toHtml converts Creole markup to HTML
set parsed [rovcreole::parse $markup] ;# rovcreole::parse converts Creole markup to a list of Tcl dicts
puts $converted
----Output:
[source]
---Hello, I love Tcl and cats!
---== License
MIT License