Fix (#176)
This commit is contained in:
parent
1e58fcb860
commit
3cd281b66f
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue