Comments (3)
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.
如果单个英文字符+空格就能解析为 ol,那么大量英语句子会出现问题,例如:
- A bag
- I did it.
- Z is the twenty-sixth and last letter of the English alphabet.
- u know
from hyperdown.
另外,在 js 版本中也有同样的问题,在线测试:例如: I got it.
其他各个 markdown 编辑器中均无此问题。
from hyperdown.
Related Issues (20)
- 解析BUG
- 请问有配套的CSS样式吗? HOT 2
- Could not find package joyqi/hyper-down at any version for your minimum-stability (stable). HOT 1
- 加粗的一个bug
- h2 标签id 不能加上中文,导致提取目录后,没法跳转
- 建议增加行内LaTeX解析 HOT 5
- 是否能增加白名单 tag 功能?
- 代码好不严谨啊,https:/xxx.com 竟然能被解析成超链接。。。
- 列表解析问题很多
- 希望四个 ```` 包裹 markdown 源码时,markdown 源码以代码段形式展示 ,不做转义 HOT 7
- 请问怎么居中和右对齐,谢谢。
- 还在维护吗
- 有个bug,关于textarea标签 HOT 1
- 能不能release一下呀,composer唯独这个包安装经常失败,还要git clone操作 HOT 1
- markdown 和html 混合发布 前台无法解析 <div>![](图片地址)</div>
- 内容包含链接会报错
- ..
- 列表底部没有换行符导致后续添加的内容都在列表元素里面
- 代码块没有高亮吗 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hyperdown.