jsdoc-remarkable

3.1.1 • Public • Published

jsdoc-remarkable

GratiPay Downloads Version

Plugin for Remarkable Markdown parser that enables basic JSDoc.

Installation

npm install --save-dev jsdoc-remarkable

Usage

import jsdoc from 'jsdoc-remarkable';
import Remarkable from 'remarkable';

const markdown = new Remarkable();
markdown.use(jsdoc());
markdown.render(...);

JSDoc Support

This plugin is not meant to be a comprehensive implementation of JSDoc. The goal is to provide a small subset of functionality to facilitate beautifully rendered documentation. Majority of other things could be achieved with Markdown.

The following constructs are supported:

@param

@param {(Type1|Type2)} paramName - Param description.

@method

@method methodName
@param {(Type1|Type2)} paramName - Param description.

This is method description.

@property

@property {(Type1|Type2)} propName - Property description.

@event

@event eventName
@param {(Type1|Type2)} paramName - Param description.

This is event description.

@action

@action actionName
@param {(Type1|Type2)} paramName - Param description.

This is action description.

License

ISC

Package Sidebar

Install

npm i jsdoc-remarkable

Weekly Downloads

1

Version

3.1.1

License

ISC

Last publish

Collaborators

  • alexgorbatchev