user92733
user92733

Reputation: 95

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)

Upvotes: 0

Views: 148

Answers (2)

qingxp9
qingxp9

Reputation: 141

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

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

Upvotes: 1

RobertKenny
RobertKenny

Reputation: 3626

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

Upvotes: 1

Related Questions