Giter Club home page Giter Club logo

Comments (7)

kecrily avatar kecrily commented on August 16, 2024

@fenbox 刚刚看了一下你的回复内容,发现你使用是的 ``` ,而不是 ```` 。

我又在 GitHub 中尝试了一下该语法,该语法其实是与 ``` 相同的解析方式,也就是该效果原先就可以实现。```` 其实是一种错误的解析。

from hyperdown.

fenbox avatar fenbox commented on August 16, 2024

@scvoet 你应该看下我的源码

image

from hyperdown.

kecrily avatar kecrily commented on August 16, 2024
> SF 社区用户反馈,github、stackoverflow 都实现了
> 
> ```
> ```
> hell world
> ```
> ```

@fenbox 以上是我通过 GitHub 回复功能获取到的源码,这与你截图中的不同。````被转为```,由此也可以判断这是一个错误解析

from hyperdown.

fenbox avatar fenbox commented on August 16, 2024

@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.

kecrily avatar kecrily commented on August 16, 2024

@fenbox 根据该描述虽然这并不属于错误,但其实两者实际效果相同。故该需求意义不大,用```即可实现展示 Markdown 代码内容了。

from hyperdown.

fenbox avatar fenbox commented on August 16, 2024

@scvoet 那你看下如何用 ``` 实现我下图这个一模一样的效果(包括里面的文本)

image

from hyperdown.

kecrily avatar kecrily commented on August 16, 2024
```
hello,world
```

@fenbox 刚刚尝试了一下,发现确实是无法通过```来实现的,是我过于主观臆断了。

但可以采用四个 space 来替换 ``` 来实现

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.