Skip to content

Navigation Menu

Sign in
Sign up

Repository files navigation

NativeScript Markdown View

npm version Build Status

NPM

A NativeScript plugin that provides a natively rendered markdown view.

Uses Markwon on Android and TSMarkdownParser on iOS.

Installation

Run the following command from the root of your project:

tns plugin add nativescript-markdown-view

Note: Use nativescript-markdown-view@2.x for {N} 6 and below

This command automatically installs the necessary files, as well as stores nativescript-markdown-view as a dependency in your project's package.json file.

Usage

You need to add xmlns:mv="nativescript-markdown-view" to your page tag, and then simply use <mv:MarkdownView/> in order to add the widget to your page.

<!-- test-page.xml -->
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded" xmlns:mv="nativescript-markdown-view">
 <StackLayout class="p-20">
 <mv:MarkdownView markdown="_This_ should be **bold**!" />
 </StackLayout>
</Page>

API

Property Default Description
markdown "" The markdown to be rendered on screen

License

MIT License, see LICENSE file

About

A NativeScript plugin that provides a natively rendered markdown view

Resources

Stars

19 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /