Comments (7)
Markdown extra 目前蠻受歡迎但支援還不普及。
但編寫 Markdown 還是越簡單越好。否則就失去 Markdown 原本便利易讀的優點了。
您的建議很好。我再想看看實作的方式。另一個角度想,WordPress 的文章都有定義 .post 這個 CSS class,假如需要客製樣式,例如 h2,可以試試 .post h2 {}
這樣的方式比較不影響文件本文的簡潔性。
from githuber-md.
例如 h1标签带上custom_h1
<h1> Test </h1>
转变为
<h1 id="custom_h1"> Test </h1>
类似这样的功能
from githuber-md.
您可以打開 Markdown extra 的 extension 就可使用類似的語法來轉換
或者您可以開始 HTML 解碼直接用 HTML
from githuber-md.
如果沒特別的問題過幾小時候關閉此 issue。
from githuber-md.
感谢作者大大,您太客气了,开源软件还对提issue的拿来主义的家伙用敬词,这样会惶恐的!感谢
from githuber-md.
我还有一个问题,如果是使用上面的两种处理方案的话,那是不是说从数据源文章上面去破坏了文章的完整性,如果移植到别的markdown环境下,部分语义没法得到兼容处理而排版错误,我看过vuepress 是在转义的同时给固定的标签带上文章的标识,如
# Test
转换成:
独立出来属于文章的标签,方便开发者对自身文章样式定制化,而且也不会影响到文章的可移植性。这个是我的个人想法,也不知道对不对,再麻烦下作者指点下,拜托
<h1 class="md_h1_extra" id="md_h1_extra">Test</h1>
from githuber-md.
好的,谢谢作者,没问题了,我关了。
from githuber-md.
Related Issues (20)
- Add preference option to save the markdown to database without parsing to HTML HOT 2
- 插入图片后,所见即所得模式下图片长宽显示为设置的数值,但前端网页显示的宽度不生效。 HOT 3
- Cannot copy markdown text HOT 4
- Markdown Editor Switcher not appearing in new post HOT 3
- 启用模块引发致命错误 HOT 1
- src/Views/assets/js.php Can cause JS errors HOT 2
- 提供上标注释Footnotes支持 HOT 4
- Syntax error in graph mermaid version 9.4.3 HOT 2
- Plugin breaks wordpress "add mediafile" functionality HOT 1
- Disabled shortcode breaks first image in gallery HOT 2
- details-summary is broken HOT 2
- Mermaid option not working HOT 2
- githuber-md在wp6.5.3有时不能正常工作 HOT 3
- Collapsable code blocks HOT 2
- I made a website with it HOT 2
- 有时不显示"启用Markdown"开关 HOT 2
- 答疑解惑 HOT 2
- Special symbols in code block is converted HOT 1
- 插件支持草稿的自动保存吗?
- when enabled, can't unchecked "Disable the visual editor when writing" in profile page
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 githuber-md.