Comments (7)
@fenbox 刚刚看了一下你的回复内容,发现你使用是的 ``` ,而不是 ```` 。
我又在 GitHub 中尝试了一下该语法,该语法其实是与 ``` 相同的解析方式,也就是该效果原先就可以实现。```` 其实是一种错误的解析。
from hyperdown.
@scvoet 你应该看下我的源码
from hyperdown.
> SF 社区用户反馈,github、stackoverflow 都实现了
>
> ```
> ```
> hell world
> ```
> ```
@fenbox 以上是我通过 GitHub 回复功能获取到的源码,这与你截图中的不同。````被转为```,由此也可以判断这是一个错误解析
from hyperdown.
@scvoet 根据 GitHub Flavored Markdown 的描述,这并不是错误解析。
A code fence is a sequence of at least three consecutive backtick characters (`) or tildes (~). (Tildes and backticks cannot be mixed.) A fenced code block begins with a code fence, indented no more than three spaces.
The closing code fence must use the same character as the opening fence
而你引用出现的三个 `
,可能是 github 引用功能的 bug。
from hyperdown.
@fenbox 根据该描述虽然这并不属于错误,但其实两者实际效果相同。故该需求意义不大,用```即可实现展示 Markdown 代码内容了。
from hyperdown.
@scvoet 那你看下如何用 ```
实现我下图这个一模一样的效果(包括里面的文本)
from hyperdown.
```
hello,world
```
@fenbox 刚刚尝试了一下,发现确实是无法通过```来实现的,是我过于主观臆断了。
但可以采用四个 space
来替换 ``` 来实现
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
- I 开头的英文句子会被解析成 ol/li HOT 3
- 加粗的一个bug
- h2 标签id 不能加上中文,导致提取目录后,没法跳转
- 建议增加行内LaTeX解析 HOT 5
- 是否能增加白名单 tag 功能?
- 代码好不严谨啊,https:/xxx.com 竟然能被解析成超链接。。。
- 列表解析问题很多
- 请问怎么居中和右对齐,谢谢。
- 还在维护吗
- 有个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.