i18next-markdown-jsx-plugin

[![npm version](https://badge.fury.io/js/i18next-markdown-jsx-plugin.svg)](https://badge.fury.io/js/i18next-markdown-jsx-plugin) [![Build Status](https://travis-ci.org/roprgm/i18next-markdown-jsx.svg?branch=master)](https://travis-ci.org/roprgm/i18next-ma

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
i18next-markdown-jsx-plugin
121.0.135 years ago5 years agoMinified + gzip package size for i18next-markdown-jsx-plugin in KB

Readme

Introduction
npm version Build Status
This is a i18next postProcessor converting markdown language to JSX components.
Getting Started
Source can be loaded via npm.
$ npm install i18next-markdown-jsx-plugin

Wiring up:
import i18next from 'i18next';
import markdownJsx from 'i18next-markdown-jsx-plugin';

i18next
  .use(markdownJsx)
  .init(i18nextOptions);
Usage sample
// given loaded resources
// translation: {
//   key: '# This is an _example_',
// }

i18next.t('key', { postProcess: 'markdown-jsx' });

Will return <h1>This is an <em>example</em></h1>