This commit is contained in:
Diego Mello 2018-01-09 01:00:19 -02:00 committed by Guilherme Gazzo
parent 1e58fcb860
commit 3cd281b66f
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ const BlockCode = ({ node, state }) => (
const rules = {
username: {
order: -1,
match: SimpleMarkdown.inlineRegex(/@[0-9a-zA-Z-_.]+/),
match: SimpleMarkdown.inlineRegex(/^@[0-9a-zA-Z-_.]+/),
parse: capture => ({ content: capture[0] }),
react: (node, output, state) => ({
type: 'custom',
@ -49,7 +49,7 @@ const rules = {
},
heading: {
order: -2,
match: SimpleMarkdown.inlineRegex(/#[0-9a-zA-Z-_.]+/),
match: SimpleMarkdown.inlineRegex(/^#[0-9a-zA-Z-_.]+/),
parse: capture => ({ content: capture[0] }),
react: (node, output, state) => ({
type: 'custom',