Giter Club home page Giter Club logo

Comments (3)

shiny avatar shiny commented on August 16, 2024
if (preg_match("/^(\s*)((?:[0-9]+\.)|(?:[a-z]\.?)|\-|\+|\*)\s+/i", $line, $matches)) {

要解决这个问题,可以删除第 625 行最后一个等价于 等价于{0,1}?即可, (?:[a-z]\.?) => (?:[a-z]\.)

if (preg_match("/^(\s*)((?:[0-9]+\.)|(?:[a-z]\.)|\-|\+|\*)\s+/i", $line, $matches)) {

不知道哪个格式规定字母不加 . 也可以当做 list,如有人知道烦请告知,感谢。

from hyperdown.

shiny avatar shiny commented on August 16, 2024

如果单个英文字符+空格就能解析为 ol,那么大量英语句子会出现问题,例如:

  • A bag
  • I did it.
  • Z is the twenty-sixth and last letter of the English alphabet.
  • u know

from hyperdown.

shiny avatar shiny commented on August 16, 2024

另外,在 js 版本中也有同样的问题,在线测试:例如: I got it.

其他各个 markdown 编辑器中均无此问题。

from hyperdown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.