What's an example of some invalid markdown?

前端 未结 3 1322
情书的邮戳
情书的邮戳 2021-01-01 20:04

I\'m writing unit tests for a model with an attribute that\'s interpreted as markdown. I\'d like to test that if the markdown is invalid, then the object is invalid - but i

3条回答
  •  春和景丽
    2021-01-01 20:26

    If all text is markdown and vice versa, then I suppose one example of invalid markdown would be invalid text in the encoding that you are using, i.e. invalid UTF-8, invalid ASCII or invalid ISO-8859-1.

提交回复
热议问题