Skip to contents

A read-only Markdown document. See markdown_view().

Super class

Widget -> MarkdownView

Active bindings

markdown

The source text (assigning calls set_markdown()).

links

The links in the document: a data frame (text, url).

Methods

Inherited methods


MarkdownView$new()

Create a Markdown view.

Usage

MarkdownView$new(text = "", id = NULL, classes = NULL, style = NULL)

Arguments

text

Markdown source.

id, classes, style

See Widget.


MarkdownView$default_style()

The built-in style.

Usage

MarkdownView$default_style()


MarkdownView$set_markdown()

Replace the document.

Usage

MarkdownView$set_markdown(text)

Arguments

text

Markdown source.


MarkdownView$render_lines()

The rendered lines for a width.

Usage

MarkdownView$render_lines(width = NA_integer_)

Arguments

width

Content width.


MarkdownView$content_width()

Natural width.

Usage

MarkdownView$content_width()


MarkdownView$content_height()

Natural height for a width.

Usage

MarkdownView$content_height(width)

Arguments

width

Content width.


MarkdownView$clone()

The objects of this class are cloneable with this method.

Usage

MarkdownView$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.