You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
{% highlightc++ 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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: