Skip to content

Commit dd7893d

Browse files
committed
fixed issue where stringToTokens is not being exported correctly
1 parent 8b43824 commit dd7893d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

example/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"test": "jest"
1010
},
1111
"dependencies": {
12+
"linkify-it": "^2.0.3",
1213
"markdown-it-checkbox": "^1.1.0",
1314
"prop-types": "^15.6.1",
1415
"react": "16.3.1",

src/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
*/

src/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);

0 commit comments

Comments
 (0)