https://github.com/humansinput/creole
Tcl library for parsing Creole-formatted text.
https://github.com/humansinput/creole
Last synced: 4 months 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 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-08T15:12:26.000Z (over 6 years ago)
- Last Synced: 2025-09-09T16:56:10.311Z (10 months 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.tcl
set 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