Closed jpdenford closed 6 years ago
Not too sure about this one. Could you post an example that fails?
With a rule eg:
linkWithChevron: {
match: ...,
parse: () => ...,
render: () => ...,
order: 1
}
When the rule has no order
property then I get this error from simple-markdown:
Once I've added the order
property then the error from simple-markdown disappears but then I get the error from the PropTypes check (mentioned above):
👍
SimpleMarkdown throws error when order property not present on new rule. Update the rule PropTypes to allow a number (aimed at the order property however may be better to use PropTypes.shape and specify properties individually).