package
2.0.4
Repository: https://github.com/rstudio/platform-lib.git
Documentation: pkg.go.dev

# 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

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author