GH-Elements

Markdown Viewer

Markdown Viewer is a gh-element that allows to preview the markdown file. Add link to the file and it will be formatted in the area below.

Value Format

The current gh-element contains a link to the markdown file as a value.

{
    field_value: "https://example.org/raw/master/Gh_Elements/markdown_viewer.md"
}

Element Options

This element has no special settings. There are only two standard field settings.

Settings of markdown viewer field

Element Style

As for the viewing style, you can adjust only the appearance of the text and alignment in container using the standard style options. You can also choose one of its interpretation types.

Style of markdown viewer element

Data Model

The data model of the current item does not contain any properties other than the interpretation array.

{
    "data_model": {
        "interpretation": []
    }
}
Name Type Description
interpretation array contains all element interpretations

Filtration

The markdown viewer cannot be filtered out.

Interpretation

This element has two types of interpretation.

Types of markdown viewer interpretation

Default

The first type allows to enter the link to the markdown file. This file appears formatted in the area below.

Value

The second type displays only the existed value of the element. It not allows to enter new value.