MarkdownView-class: MarkdownView widget

MarkdownViewR Documentation

MarkdownView widget

Description

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

Public 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.


termr documentation built on Oct. 21, 2026, 5:13 p.m.