markdownRenderer

command
v2.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 27 Imported by: 0

README

Example App markdownRenderer

Description

This example application lets you input Markdown and render it to HTML. It demonstrates using the following platform-lib modules:

  • rscache to avoid duplicate work by caching HTML rendered from markdown.
  • rsnotify to provide a notification mechanism for rscache, rsqueue, and rsstorage.
  • rsqueue for queuing the jobs that render markdown to HTML.
  • rsstorage for underlying file storage support for caching rendered HTML.

Usage

To use this test service, simply build and start the application with:

just build
./out/markdownRenderer

To use an alternate address/port, you can use the --address flag:

./out/markdownRenderer --address www.mysite.local:8082
./out/markdownRenderer --address :9000

Then, visit http://localhost:8082.

Application Data

As you create documents, they will be saved in the data directory. The database used by the queue is also stored in the data directory. You can clear this directory any time when markdownRenderer is not running.

Example Markdown

Here is some example Markdown you can paste into the app for testing.

# This is a header

## This is a subheader

Here is a list

* Day one
* Day two
* Day three

Here is some code:

    func PrintName(name string) {
      fmt.Printf("My name is %s", name)
    }

And here is a table:

Name    | Age
--------|------
Bob     | 27
Alice   | 23
========|======
Total   | 50

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL