Fix (#176)
This commit is contained in:
parent
1e58fcb860
commit
3cd281b66f
|
@ -29,7 +29,7 @@ const BlockCode = ({ node, state }) => (
|
||||||
const rules = {
|
const rules = {
|
||||||
username: {
|
username: {
|
||||||
order: -1,
|
order: -1,
|
||||||
match: SimpleMarkdown.inlineRegex(/@[0-9a-zA-Z-_.]+/),
|
match: SimpleMarkdown.inlineRegex(/^@[0-9a-zA-Z-_.]+/),
|
||||||
parse: capture => ({ content: capture[0] }),
|
parse: capture => ({ content: capture[0] }),
|
||||||
react: (node, output, state) => ({
|
react: (node, output, state) => ({
|
||||||
type: 'custom',
|
type: 'custom',
|
||||||
|
@ -49,7 +49,7 @@ const rules = {
|
||||||
},
|
},
|
||||||
heading: {
|
heading: {
|
||||||
order: -2,
|
order: -2,
|
||||||
match: SimpleMarkdown.inlineRegex(/#[0-9a-zA-Z-_.]+/),
|
match: SimpleMarkdown.inlineRegex(/^#[0-9a-zA-Z-_.]+/),
|
||||||
parse: capture => ({ content: capture[0] }),
|
parse: capture => ({ content: capture[0] }),
|
||||||
react: (node, output, state) => ({
|
react: (node, output, state) => ({
|
||||||
type: 'custom',
|
type: 'custom',
|
||||||
|
|
Loading…
Reference in New Issue