简体   繁体   中英

error of Jekyll compile the html codes for github page

<pre class="Input" style="white-pace:nowrap; overflow: auto;"><code>Plot[{Sin[1/x]}, {x, -1, 3}, 

 RegionFunction -&gt; Function[{x}, 0 &lt; x &lt; 10], 

 PlotRange -&gt; {{-1, 3}, {-1.2, 1.2}}, 

 PlotLabel -&gt; TraditionalForm[Sin[1/x]], PlotStyle -&gt; Red, 

 AxesLabel -&gt; {"x", "y"}, AxesStyle -&gt; Arrowheads[{-0.03, 0.03}]]</code></pre>

The error information is:

Error: Variable `{{-1,3}` was not properly terminated with regexp: /\}\}/. Use --trace to view backtrace

I use GithShell to use Jekyll(for github page)

{{ is part of the liquid the templating language. Try encoding the { or enclose content in {% raw %} {% endraw %} block.

because the '{{' is thought as part of liquid.

eg
'{{site.title}}' will be replace to your sitename setted in _config.yml

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM