Skip to content

UI.MarkdownViewer

Name - Description Default Type
<input> The markdown text to render. String
<output> The output of this shard will be its input. String

Renders a markdown text.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
(GFX.MainWindow
 :Contents
 (->
  (Setup
   (GFX.DrawQueue) >= .ui-draw-queue
   (GFX.UIPass .ui-draw-queue) >> .render-steps)
  (UI
   .ui-draw-queue
   (UI.TopPanel
    :Contents
    (->
     "# Title

## Sub-title
**list:**
- item 1
- item 2" (UI.MarkdownViewer))))

  (GFX.Render :Steps .render-steps)))

 

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
(GFX.MainWindow
 :Contents
 (->
  (Setup
   (GFX.DrawQueue) >= .ui-draw-queue
   (GFX.UIPass .ui-draw-queue) >> .render-steps)
  (UI
   .ui-draw-queue
   (UI.CentralPanel
    :Contents
    (->
     (Setup
      "shards/UI/MarkdownViewer/sample.md" (FS.Read) = .text)

     (UI.ScrollArea
      :Contents
      (->
       .text (UI.MarkdownViewer))))))

  (GFX.Render :Steps .render-steps)))