gridsome / gridsome

⚡️ The Jamstack framework for Vue.js
https://gridsome.org
MIT License
8.55k stars 490 forks source link

Turn off inline code highlighting for remark prismjs #771

Closed atymic closed 5 years ago

atymic commented 5 years ago

Description

The prism js code highlighting works well, but unlike the shiki plugin there doesn't seem to be a way to turn of highlighting of inline snippets

Steps to reproduce

Create a markdown document with code in single backticks code

Expected result

Have an option to turn off inline highlighting

Actual result

You can't disable inline highlighting

Environment

System: OS: macOS Mojave 10.14.6 CPU: (8) x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz Binaries: Node: 10.16.3 - ~/.nvm/versions/node/v10.16.3/bin/node Yarn: 1.19.0 - /usr/local/bin/yarn npm: 6.9.0 - ~/.nvm/versions/node/v10.16.3/bin/npm Browsers: Chrome: 77.0.3865.120 Firefox: 68.0.2 Safari: 13.0.2 npmPackages: @gridsome/plugin-sitemap: ^0.2.2 => 0.2.2 @gridsome/remark-prismjs: ^0.2.0 => 0.2.0 @gridsome/source-filesystem: ^0.6.1 => 0.6.1 @gridsome/transformer-remark: ^0.3.4 => 0.3.4 @gridsome/vue-remark: ^0.1.6 => 0.1.6 gridsome: ^0.7.7 => 0.7.7 gridsome-plugin-remark-shiki: ^0.3.0 => 0.3.0 gridsome-plugin-rss: ^1.2.0 => 1.2.0

atymic commented 5 years ago

Forgot to mention i'd be happy to create a PR