I was helping Archer72 with his notes for show 4527 recently and noticed that QuillJS apparently generates HTML which relies on its own CSS definitions. Elements like lists are not implemented with simple nested <ul><li> sequences but use class attributes that start with ql-.
For example (slightly reformatted for space):
<ul>
<li>VNC server for remote GUI</li>
<li class="ql-indent-1">virt-manager server</li>
</ul>
The second <li> would normally be a "child" of the first in more "standard" HTML.
Perhaps there are two solutions to the problems this causes:
Add the QuillJS CSS to the HPR CSS. This will not help when shows are uploaded to the IA of course.
Reformat HTML which has been generated by QuillJS to make it hierarchical and remove the ql- CSS references. This would generate more universally acceptable HTML, but it's not trivial to code.
I looked on the QuillJS Github repo to see if it was possible to find the CSS the tool uses, but didn't find anything in the time I had. I did see this in the HTML for show 4527:
I was helping `Archer72` with his notes for show 4527 recently and noticed that QuillJS apparently generates HTML which relies on its own CSS definitions. Elements like lists are not implemented with simple nested `<ul><li>` sequences but use `class` attributes that start with `ql-`.
For example (slightly reformatted for space):
```
<ul>
<li>VNC server for remote GUI</li>
<li class="ql-indent-1">virt-manager server</li>
</ul>
```
The second `<li>` would normally be a "child" of the first in more "standard" HTML.
Perhaps there are two solutions to the problems this causes:
1. Add the QuillJS CSS to the HPR CSS. This will not help when shows are uploaded to the IA of course.
2. Reformat HTML which has been generated by QuillJS to make it hierarchical and remove the `ql-` CSS references. This would generate more universally acceptable HTML, but it's not trivial to code.
I looked on the QuillJS Github repo to see if it was possible to find the CSS the tool uses, but didn't find anything in the time I had. I did see this in the HTML for show 4527:
```
<pre class="ql-syntax" spellcheck="false">
sudo apt install tigervnc-common
</pre>
```
@davmo the best would be to have QuillJS not produce this in the first place.
```
<h1>H1</h1>
<h2>h2</h2>
<h3>h3</h3>
<h4>h4</h4>
<h5>h5</h5>
<h6>h6</h6>
<p>normall</p>
<ol>
<li></span>number 1</li>
<li></span>number 2</li>
<li></span>number 3</li>
</ol>
<p>normal</p>
<ol>
<li></span>bullet</li>
<li></span>bullet</li>
<li></span>bullet</li>
</ol>
<p>normal
<strong>bold</strong>
<em>italic</em>
<u>underline</u>
<s>strikethrough</s>
<blockquote>quote</blockquote>
<code>code</code>
<a href="https://example.com" rel="noopener noreferrer" target="_blank">link</a>
image
<img src="photo">
</p>
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
I was helping
Archer72with his notes for show 4527 recently and noticed that QuillJS apparently generates HTML which relies on its own CSS definitions. Elements like lists are not implemented with simple nested<ul><li>sequences but useclassattributes that start withql-.For example (slightly reformatted for space):
The second
<li>would normally be a "child" of the first in more "standard" HTML.Perhaps there are two solutions to the problems this causes:
ql-CSS references. This would generate more universally acceptable HTML, but it's not trivial to code.I looked on the QuillJS Github repo to see if it was possible to find the CSS the tool uses, but didn't find anything in the time I had. I did see this in the HTML for show 4527:
SELECT * FROMepsWHEREnotesLIKE '%class="ql-%';20 total
@davmo the best would be to have QuillJS not produce this in the first place.
You are right of course. My (limited) researches didn't show how that could be done, but maybe you know better?
I have asked on the quill forum.
const rawHTML = quill.getSemanticHTML();