Code Monkey home page Code Monkey logo

Comments (7)

terrylinooo avatar terrylinooo commented on September 14, 2024 1

Markdown extra 目前蠻受歡迎但支援還不普及。
但編寫 Markdown 還是越簡單越好。否則就失去 Markdown 原本便利易讀的優點了。

您的建議很好。我再想看看實作的方式。另一個角度想,WordPress 的文章都有定義 .post 這個 CSS class,假如需要客製樣式,例如 h2,可以試試 .post h2 {} 這樣的方式比較不影響文件本文的簡潔性。

from githuber-md.

qq781548819 avatar qq781548819 commented on September 14, 2024

例如 h1标签带上custom_h1

<h1> Test </h1>

转变为

<h1 id="custom_h1"> Test </h1>

类似这样的功能

from githuber-md.

terrylinooo avatar terrylinooo commented on September 14, 2024

您可以打開 Markdown extra 的 extension 就可使用類似的語法來轉換

image

image

或者您可以開始 HTML 解碼直接用 HTML

image

from githuber-md.

terrylinooo avatar terrylinooo commented on September 14, 2024

如果沒特別的問題過幾小時候關閉此 issue。

from githuber-md.

qq781548819 avatar qq781548819 commented on September 14, 2024

感谢作者大大,您太客气了,开源软件还对提issue的拿来主义的家伙用敬词,这样会惶恐的!感谢

from githuber-md.

qq781548819 avatar qq781548819 commented on September 14, 2024

我还有一个问题,如果是使用上面的两种处理方案的话,那是不是说从数据源文章上面去破坏了文章的完整性,如果移植到别的markdown环境下,部分语义没法得到兼容处理而排版错误,我看过vuepress 是在转义的同时给固定的标签带上文章的标识,如

# Test

转换成:

独立出来属于文章的标签,方便开发者对自身文章样式定制化,而且也不会影响到文章的可移植性。这个是我的个人想法,也不知道对不对,再麻烦下作者指点下,拜托
<h1 class="md_h1_extra" id="md_h1_extra">Test</h1>

from githuber-md.

qq781548819 avatar qq781548819 commented on September 14, 2024

好的,谢谢作者,没问题了,我关了。

from githuber-md.

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.