I use this plugin to render the HTML generated with Jekyll.
When I have a code snippet and I normalize it with htmlbeautifier, it ends up having a bad format (visually). The code snippet in liquid is:
{% highlight c++ linenos %}
int main(int argc, char const \*argv[])
{
string myString;
cout << "input a string: ";
getline(cin, myString);
int length = myString.length();
char charArray = new char * [length];
charArray = myString;
for(int i = 0; i < length; ++i){
cout << charArray[i] << " ";
}
return 0;
}
{% endhighlight %}
I still can't find where the problem is generated. Any idea?
I had thought of filtering the figure block so that it is not processed, but I don't see how to do it.
Thanks
I use this plugin to render the HTML generated with Jekyll. When I have a code snippet and I normalize it with htmlbeautifier, it ends up having a bad format (visually). The code snippet in liquid is:
When I don't use the plugin the output is:
Visual preview (without htmlbeautifier):
With htmlbeautifier the output is:
Visual preview (with htmlbeautifier):
I still can't find where the problem is generated. Any idea? I had thought of filtering the figure block so that it is not processed, but I don't see how to do it. Thanks