kramdown

How to remove anchor links from headers in Markdown?

懵懂的女人 提交于 2021-02-11 16:19:11
问题 In Github, when you create an h2 or smaller header (##, ###, ...) there is an anchor link thing that is automatically generated to the right of the header. When you click this anchor, it links you to the page with that header at the top of the page (www.myurl#myheader). Is it possible to remove this anchor? 回答1: You can disable Kramdown's auto-ids option. Depending on how you are using Kramdown, there are a number of ways in which to do so: Command Line If you are using Kramdown from the

Definition lists in kramdown

假装没事ソ 提交于 2021-02-08 05:14:23
问题 How do I generate the following HTML markup using kramdown? <ol> <li> <dt> Term </dt> <dd class="meta"> Definition of the term </dd> </li> </ol> where the meta is some appropriate styling (class) defined in my css. I already tried: 1. Term : Definition of the term {: .meta} but that does not work. Any help would be appreciated. 回答1: You're probably getting the following error: Warning: Found span IAL after text - ignoring it If you therefore put the IAL before the text, it parses fine. 1.

Definition lists in kramdown

无人久伴 提交于 2021-02-08 05:12:41
问题 How do I generate the following HTML markup using kramdown? <ol> <li> <dt> Term </dt> <dd class="meta"> Definition of the term </dd> </li> </ol> where the meta is some appropriate styling (class) defined in my css. I already tried: 1. Term : Definition of the term {: .meta} but that does not work. Any help would be appreciated. 回答1: You're probably getting the following error: Warning: Found span IAL after text - ignoring it If you therefore put the IAL before the text, it parses fine. 1.

Definition lists in kramdown

雨燕双飞 提交于 2021-02-08 05:11:26
问题 How do I generate the following HTML markup using kramdown? <ol> <li> <dt> Term </dt> <dd class="meta"> Definition of the term </dd> </li> </ol> where the meta is some appropriate styling (class) defined in my css. I already tried: 1. Term : Definition of the term {: .meta} but that does not work. Any help would be appreciated. 回答1: You're probably getting the following error: Warning: Found span IAL after text - ignoring it If you therefore put the IAL before the text, it parses fine. 1.

GitHub Pages 与 Gitee Pages 上的 Jekyll

南楼画角 提交于 2020-08-13 08:14:25
目录 Jekyll on GitHub Pages Jekyll 的 Markdown 引擎 常规插件 静默增强插件 GitHub Pages 主题 总结 Jekyll on Gitee Pages GitHub 与 Gitee 提供的 Pages 服务中,均内嵌了 Jekyll 支持(Gitee 还提供了 Hugo 与 Hexo 支持)。所谓「支持」,即指这些生成工具挂在云端;你只需要提供原始代码(如 Markdown 文档、Sass/Stylus/Less 样式表),再由 Pages 服务自动编译、部署即可。这样,搭建网站的技术门槛进一步下降,你只需要会两件事就能搭建网站了: 会写 Markdown 文档; 注册 GitHub 或 Gitee 账号,点点鼠标,在你的代码仓库中启用 Pages 服务。 因为技术门槛如此之低,导致不少用户压根就意识不到 Pages 服务内置了 Jekyll 工具,甚至以为每一个 Markdown 文档理所当然地就能变成一个网页。此外,另一个常被忽视的问题是:由 Pages 服务调用的 Jekyll 工具,并非最新版本,而且隐性地增添了许多插件,这可能使用户在本地使用 Jekyll 或迁移平台时碰上「不协调」的问题。最常见的一个问题就是:在 GitHub Pages 上正常生成的代码仓库,到 Gitee Pages 上就变得一团糟。这不是因为

GitHub Pages 与 Gitee Pages 上的 Jekyll

橙三吉。 提交于 2020-08-05 05:14:22
目录 Jekyll on GitHub Pages Jekyll 的 Markdown 引擎 常规插件 静默增强插件 GitHub Pages 主题 总结 Jekyll on Gitee Pages GitHub 与 Gitee 提供的 Pages 服务中,均内嵌了 Jekyll 支持(Gitee 还提供了 Hugo 与 Hexo 支持)。所谓「支持」,即指这些生成工具挂在云端;你只需要提供原始代码(如 Markdown 文档、Sass/Stylus/Less 样式表),再由 Pages 服务自动编译、部署即可。这样,搭建网站的技术门槛进一步下降,你只需要会两件事就能搭建网站了: 会写 Markdown 文档; 注册 GitHub 或 Gitee 账号,点点鼠标,在你的代码仓库中启用 Pages 服务。 因为技术门槛如此之低,导致不少用户压根就意识不到 Pages 服务内置了 Jekyll 工具,甚至以为每一个 Markdown 文档理所当然地就能变成一个网页。此外,另一个常被忽视的问题是:由 Pages 服务调用的 Jekyll 工具,并非最新版本,而且隐性地增添了许多插件,这可能使用户在本地使用 Jekyll 或迁移平台时碰上「不协调」的问题。最常见的一个问题就是:在 GitHub Pages 上正常生成的代码仓库,到 Gitee Pages 上就变得一团糟。这不是因为

Middleman: undefined method `link_to' when rendering markdown from data file

筅森魡賤 提交于 2020-01-06 21:40:08
问题 I am using Markdown written in data file to render HTML in HAML template with Middleman static page generator. My data file, data/faq.yaml looks like this: dog: question: I want to know more about a dog. answerA: (HTML in data) Just <a href="https://google.com">Google</a> it! answerB: (Markdown link in data) Just [Google](https://google.com) it! To convert this markdown to HTML, I am using custom helper defined in config.rb : helpers do def markdown(text) Tilt['markdown'].new { text }.render

Integrating column support into markdown in Jekyll framework

随声附和 提交于 2019-12-24 09:52:28
问题 I'd like to add functionality for dynamic columning, similar to a bootstrap grid system, in text posts within a Jekyll blog (which comes with kramdown by default). Ideally this would be done easily in markdown posts. I found this github project that seems like exactly what I'd need: https://github.com/dreikanter/markdown-grid I've looked through this project but, unfortunately, I don't have much experience with frontend and I'm not sure where to start to integrate this into my Jekyll template

Fenced codeblocks in Jekyll

这一生的挚爱 提交于 2019-12-23 02:34:23
问题 I have just upgraded my local Jekyll installation to Jekyll 3.0.2. I was looking forward to use fenced (backticks) code blocks when posting source code. This however doesn't work, and I still have to use Liquid tags to specify codeblocks My build settings in _config.yml: baseurl: / destination: _site permalink: pretty markdown: kramdown kramdown: input: GFM syntax_highlighter: rouge List of Ruby gems installed activesupport (4.2.5.1) addressable (2.3.8) bigdecimal (1.2.6) bundler (1.11.2)

Support for adding lazy load for images in Markdown

自作多情 提交于 2019-12-21 16:52:50
问题 I'm using kramdown parser to convert markdown to html. I want to use lazy load for images without modifying original markdown syntax. I can achieve this by editing link.rb file in kramdown gems. But I don't want to follow this way. Because if anyone updating kramdown I'll lose these edits. Is there anyother way to do this without modifying original image syntax? Original Image Syntax: ![](some image link) Current Output (without above edit): <img src="some image link" alt=""/> Expected Output