ToolipsMarkdown.jl

Markdown to toolips component parsing.
Author ChifiSource
Popularity
4 Stars
Updated Last
6 Months Ago
Started In
July 2022

dead repo

ToolipsMarkdown is now a part of ToolipsServables in Toolips 0.3. ToolipsServables.

  • ( This project can still be used with Toolips 0.2. )

Parse markdown strings into Toolips Components.

using Toolips
using ToolipsMarkdown

markdownexample1 = tmd"""# Hello world, this is an example.
This extension, **[toolips markdown](http://github.com/ChifiSource/ToolipsMarkdown.jl)** allows the conversion of regular markdown into Toolips components.
"""
heading1s = Style("h1", color = "pink")
heading1s:"hover":["color" => "lightblue"]

myroute = route("/") do c::Connection
    write!(c, heading1s)
    mdexample2 = tmd("mymarkdown", "### hello world!")
    write!(c, markdownexample1)
    write!(c, mdexample2)
end
st = ServerTemplate()
st.add(myroute)
st.start()
[2022:07:01:17:22]: ๐ŸŒท toolips> Toolips Server starting on port 8000
[2022:07:01:17:22]: ๐ŸŒท toolips> /home/emmac/dev/toolips/ToolipsMarkdown/logs/log.txt not in current working directory.
[2022:07:01:17:22]: ๐ŸŒท toolips> Successfully started server on port 8000
[2022:07:01:17:22]: ๐ŸŒท toolips> You may visit it now at http://127.0.0.1:8000