Skip to content

Commit

Permalink
v3.2.6 fixed issue where stringToTokens is not being exported correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mientjan committed Jun 4, 2018
1 parent dd7893d commit 628ff6a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const initialLayout = {
export default class App extends Component {
state = {
index: 0,
routes: [{ key: 'linkedimg', title: 'Linked Images' }],
routes: [{ key: 'all', title: 'All' }, { key: 'linkedimg', title: 'Linked Images' }],
};

handleChangeValue = (itemValue, itemIndex) => {
Expand Down
4 changes: 2 additions & 2 deletions example/react-native-markdown-renderer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
import { parser, stringToTokens } from './lib/parser';
import parser from './lib/parser';
import applyStyle from './lib/util/applyStyle';
import getUniqueID from './lib/util/getUniqueID';
import hasParents from './lib/util/hasParents';
Expand All @@ -17,7 +17,7 @@ import MarkdownIt from 'markdown-it';
import PluginContainer from './lib/plugin/PluginContainer';
import blockPlugin from './lib/plugin/blockPlugin';
import { styles } from './lib/styles';

import { stringToTokens } from './lib/util/stringToTokens';
/**
*
*/
Expand Down
2 changes: 1 addition & 1 deletion example/react-native-markdown-renderer/lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import groupTextTokens from './util/groupTextTokens';
* @param {AstRenderer} [markdownIt]
* @return {View}
*/
export function parser(source, renderer, markdownIt) {
export default function parser(source, renderer, markdownIt) {
let tokens = stringToTokens(source, markdownIt);
tokens = cleanupTokens(tokens);
tokens = groupTextTokens(tokens);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-markdown-renderer",
"version": "3.2.5",
"version": "3.2.6",
"description": "Markdown renderer for react-native, with CommonMark spec support + adds syntax extensions & sugar (URL autolinking, typographer).",
"main": "src/index.js",
"types": "src/index.d.ts",
Expand Down

0 comments on commit 628ff6a

Please sign in to comment.