omnis-markdown

1.0.5 • Public • Published

Omnis Markdown

A simple JS Worker module for use with Omnis Studio.

Allows you to convert Markdown text into HTML.

Built around the excellent marked package.

Installation

Run the following in Omnis Studio's jsworker folder:

npm install omnis-markdown

Then add an entry for this to your omnis_modules.js file:

const moduleMap = {
	markdown: require('omnis-markdown'),
	...
};

Usage

processMarkdown

Converts the passed markdown text into HTML.

Input Parameter must be a Row with a column named markdown.

Do lParams.$define()
Do lParams.$cols.$add("markdown",kCharacter,kSimplechar)
Calculate lParams.markdown as iMarkdownText

Do iJSWorker.$callmethod("markdown","processMarkdown",lParams) Returns #F

Will return the result to $methodreturn's parameter row, in a column named html.

Readme

Keywords

Package Sidebar

Install

npm i omnis-markdown

Weekly Downloads

3

Version

1.0.5

License

MIT

Unpacked Size

5.45 kB

Total Files

4

Last publish

Collaborators

  • jason.gissing