Create prosemirror structs and HTML conversion logic
Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
95
pkg/prosemirror/testdata/document.html
vendored
Normal file
95
pkg/prosemirror/testdata/document.html
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
<h1>Heading 1</h1>
|
||||
<p>This is a paragraph <strong>with some bold</strong> and <em>some italic </em>and some <u>underlined text</u>.<br>It
|
||||
contains a line break, and some <s>strikethrough.</s><br>There's some <code>inline code</code>. And a <a
|
||||
href="https://getprobo.com" target="_blank" rel="noopener noreferrer nofollow">link</a></p>
|
||||
<h2>Heading 2</h2>
|
||||
<p>A simple paragraph.</p>
|
||||
<pre><code>code block</code></pre>
|
||||
<h3>Heading 3</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<p>ul <strong>list</strong> item 1</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>ul <em>list</em> item 2</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>ul <a href="https://google.com" target="_blank" rel="noopener noreferrer nofollow">list</a> item 3</p>
|
||||
</li>
|
||||
</ul>
|
||||
<hr>
|
||||
<ol>
|
||||
<li>
|
||||
<p>ol list <u>item</u> 1</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>ol list <code>item</code> 2</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>ol list <s>item</s> 3</p>
|
||||
</li>
|
||||
</ol>
|
||||
<hr>
|
||||
<blockquote>
|
||||
<p>Blockquote<br>Line <strong>break</strong></p>
|
||||
</blockquote>
|
||||
<hr>
|
||||
<table>
|
||||
<tr>
|
||||
<th>
|
||||
<p>th 1</p>
|
||||
</th>
|
||||
<th>
|
||||
<p>th 2</p>
|
||||
</th>
|
||||
<th>
|
||||
<p>th 3</p>
|
||||
</th>
|
||||
<th style="min-width: 61px">
|
||||
<p>th 4</p>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>td <em>11</em></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>td <strong>12</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>td <s>13</s></p>
|
||||
</td>
|
||||
<td style="min-width: 61px">
|
||||
<ul>
|
||||
<li>
|
||||
<p>1</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>2</p>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>td <u>21</u></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>td <a href="https://example.org" target="_blank" rel="noopener noreferrer nofollow">22</a></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>td <code>23</code></p>
|
||||
</td>
|
||||
<td style="min-width: 61px">
|
||||
<ol>
|
||||
<li>
|
||||
<p>A</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>B</p>
|
||||
</li>
|
||||
</ol>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p></p>
|
||||
Reference in New Issue
Block a user