Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jekyll github博客中未显示单个反勾代码_Github_Jekyll_Backticks - Fatal编程技术网

jekyll github博客中未显示单个反勾代码

jekyll github博客中未显示单个反勾代码,github,jekyll,backticks,Github,Jekyll,Backticks,我试图在sudo visudo和/etc/visudo上显示灰色背景的代码块。 我认为它可以在github页面上运行,但是当我们看看jekyll时,它并没有像我预期的那样运行 这是我在.md文件中的代码: type `sudo visudo` to enter `/etc/visudo`. ``` User privilege specification root ALL=(ALL:ALL) ALL hadoop ALL=(ALL:ALL) ALL sparkuser ALL

我试图在sudo visudo和/etc/visudo上显示灰色背景的代码块。
我认为它可以在github页面上运行,但是当我们看看jekyll时,它并没有像我预期的那样运行

这是我在.md文件中的代码:

type `sudo visudo` to enter `/etc/visudo`.

```
User privilege specification  
root    ALL=(ALL:ALL) ALL  
hadoop ALL=(ALL:ALL) ALL  
sparkuser ALL=(ALL:ALL) ALL  
```

和我的_config.yml文件:

markdown: kramdown  
kramdown:  
  input: GFM  
  syntax_highlighter: rouge  
  syntax_highlighter_opts:  
        css_class: 'highlight'  
如何在sudo visudo和/etc/visudo上创建灰色背景?
谢谢

这里发生的事情是,你特定的杰基尔主题没有在
sudo visudo
/etc/visudo
后面添加背景。由于在Jekyll示例图片中字体更改为单间距字体,因此它正确地解析了标记,只是主题没有设置为显示背景

是的,你说得对。没想到主题会是个问题。非常感谢。