remarkjs

How to change Markdown link relative path as preprocessing of gatsby-transformer-remark

有些话、适合烂在心里 提交于 2020-07-18 21:16:32
问题 I am developping a static blog using Gatsby. It use gatsby-transformer-remark and gatsby-plugin-i18n plugin to support multiple languages. I am managing the articles in the GitHub repository as follows. /blog /2017 /06 01-foo.en.md 01-foo.zh.md /09 01-bar.en.md 01-bar.zh.md And links between the articles is necessary. Therefore, in order not to become a dead link when looking at GitHub with a Web browser, we set up a link as follows. [link](/blog/2017/09/01-bar.en.md) However, this has the

Bullet color in Xaringan presentation

自古美人都是妖i 提交于 2019-12-11 23:41:54
问题 Is it possible to change the bullet colors in Xaringan presentation? The text should have a different color. I have not find any option in xaringanthemer package neither going through the css file. I could not find any information remark.js documentation. 回答1: You can change the bullet point colour by adding a custom CSS to the YAML header of your Xaringan presentation. Following is a fully reproducible minimal example. Markdown file title: "Example" author: "Author" date: "`r Sys.Date()`"

Incremental slides do not work with a two-column layout

佐手、 提交于 2019-12-07 03:35:54
问题 I am using the xaringan package for r for a presentation: https://cran.r-project.org/web/packages/xaringan/index.html which builds upon the remark.js library. I would like to use a two column layout, i.e. something like this from the original remark.js teaser presentation: https://remarkjs.com/ where the original css rules (which are embedded in the source of the presentation) specifies the layout via: /* Two-column layout */ .left-column { color: #777; width: 20%; height: 92%; float: left; }

Custom frontmatter variables with Markdown Remark in Gatsby.js

好久不见. 提交于 2019-12-05 13:32:25
问题 I am building a website using Gatsbyjs and NetlifyCMS. I've started using this starter https://github.com/AustinGreen/gatsby-starter-netlify-cms, and I am trying to customise it now. I want to use custom variables in the frontmatter of a markdown file like this: --- templateKey: mirror nazev: Černobílá title: Black and White cena: '2700' price: '108' thumbnail: /img/img_1659.jpeg --- I want to acess this data with GraphQL. I use gatsby-source-filesystem and gatsby-transform-remark. This is my

Incremental slides do not work with a two-column layout

旧街凉风 提交于 2019-12-05 07:44:34
I am using the xaringan package for r for a presentation: https://cran.r-project.org/web/packages/xaringan/index.html which builds upon the remark.js library. I would like to use a two column layout, i.e. something like this from the original remark.js teaser presentation: https://remarkjs.com/ where the original css rules (which are embedded in the source of the presentation) specifies the layout via: /* Two-column layout */ .left-column { color: #777; width: 20%; height: 92%; float: left; } .left-column h2:last-of-type, .left-column h3:last-child { color: #000; } .right-column { width: 75%;

Custom frontmatter variables with Markdown Remark in Gatsby.js

若如初见. 提交于 2019-12-03 23:25:59
I am building a website using Gatsbyjs and NetlifyCMS. I've started using this starter https://github.com/AustinGreen/gatsby-starter-netlify-cms , and I am trying to customise it now. I want to use custom variables in the frontmatter of a markdown file like this: --- templateKey: mirror nazev: Černobílá title: Black and White cena: '2700' price: '108' thumbnail: /img/img_1659.jpeg --- I want to acess this data with GraphQL. I use gatsby-source-filesystem and gatsby-transform-remark. This is my query: { allMarkdownRemark { edges { node { frontmatter { templateKey nazev title cena price } } } }