Skip to content

Commit 628ff6a

Browse files
committed
v3.2.6 fixed issue where stringToTokens is not being exported correctly
1 parent dd7893d commit 628ff6a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

example/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const initialLayout = {
128128
export default class App extends Component {
129129
state = {
130130
index: 0,
131-
routes: [{ key: 'linkedimg', title: 'Linked Images' }],
131+
routes: [{ key: 'all', title: 'All' }, { key: 'linkedimg', title: 'Linked Images' }],
132132
};
133133

134134
handleChangeValue = (itemValue, itemIndex) => {

example/react-native-markdown-renderer/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import React, { Component } from 'react';
66
import PropTypes from 'prop-types';
77
import { View } from 'react-native';
8-
import { parser, stringToTokens } from './lib/parser';
8+
import parser from './lib/parser';
99
import applyStyle from './lib/util/applyStyle';
1010
import getUniqueID from './lib/util/getUniqueID';
1111
import hasParents from './lib/util/hasParents';
@@ -17,7 +17,7 @@ import MarkdownIt from 'markdown-it';
1717
import PluginContainer from './lib/plugin/PluginContainer';
1818
import blockPlugin from './lib/plugin/blockPlugin';
1919
import { styles } from './lib/styles';
20-
20+
import { stringToTokens } from './lib/util/stringToTokens';
2121
/**
2222
*
2323
*/

example/react-native-markdown-renderer/lib/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import groupTextTokens from './util/groupTextTokens';
1212
* @param {AstRenderer} [markdownIt]
1313
* @return {View}
1414
*/
15-
export function parser(source, renderer, markdownIt) {
15+
export default function parser(source, renderer, markdownIt) {
1616
let tokens = stringToTokens(source, markdownIt);
1717
tokens = cleanupTokens(tokens);
1818
tokens = groupTextTokens(tokens);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-markdown-renderer",
3-
"version": "3.2.5",
3+
"version": "3.2.6",
44
"description": "Markdown renderer for react-native, with CommonMark spec support + adds syntax extensions & sugar (URL autolinking, typographer).",
55
"main": "src/index.js",
66
"types": "src/index.d.ts",

0 commit comments

Comments
 (0)