Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix punctuation on next line bug with newest simple-markdown version #93

Open
wants to merge 3 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"dependencies": {
"lodash": "^4.15.0",
"prop-types": "^15.6.0",
"simple-markdown": "^0.3.1"
"simple-markdown": "1.0.0-alpha.0"
},
"peerDependencies": {
"react": "*",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Markdown extends Component<Props> {
const tree = SimpleMarkdown.parserFor(rules)(blockSource, {
inline: false,
})
return SimpleMarkdown.reactFor(SimpleMarkdown.ruleOutput(rules, 'react'))(
return SimpleMarkdown.outputFor(rules, 'react')(
tree,
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default styles => ({
react: (node, output, parentState) => {
const state = { ...parentState }
state.withinText = true
const stylesToApply = [styles.heading, styles[`heading ${node.level}`]]
const stylesToApply = [styles.heading, styles[`heading${node.level}`]]
state.stylesToApply = stylesToApply
return createElement(
Text,
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2688,9 +2688,9 @@ signal-exit@^3.0.0, signal-exit@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d"

simple-markdown@^0.3.1:
version "0.3.2"
resolved "https://registry.yarnpkg.com/simple-markdown/-/simple-markdown-0.3.2.tgz#eb3902dc3bcf74fdfc1883230286dcadea870dc0"
simple-markdown@0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/simple-markdown/-/simple-markdown-0.4.0.tgz#86ec1344c7747a3ca120f5e4325be88cb4a67cc3"

slash@^1.0.0:
version "1.0.0"
Expand Down