fix(#997): optimize editor tips

This commit is contained in:
haitao(lj) 2022-10-10 17:19:41 +08:00
parent 25bb439f54
commit 8878c28fe1
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"how_to_format": {
"title": "How to Format",
"description": "<ul><li><p>to make links</p><pre><code>&lt;https: //url.com&gt;<br/><br/>[Title](https: //url.com)</code></pre></li><li><p>put returns between paragraphs</p></li><li><p><em>italic</em> or **<strong>bold</strong>**</p></li><li><p>indent code by 4 spaces</p></li><li><p>quote by placing &gt; at start of line</p></li><li><p>backtick escapes <code>`like _so_`</code></p></li><li><p>create code fences with backticks `</p><pre><code>``` <br/>code here<br/>```</code></pre></li></ul>"
"description": "<ul><li><p>to make links</p><pre><code>&lt;https://url.com&gt;<br/><br/>[Title](https://url.com)</code></pre></li><li><p>put returns between paragraphs</p></li><li><p><em>_italic_</em> or **<strong>bold</strong>**</p></li><li><p>indent code by 4 spaces</p></li><li><p>quote by placing &gt; at start of line</p></li><li><p>backtick escapes <code>`like _so_`</code></p></li><li><p>create code fences with backticks `</p><pre><code>``` <br/>code here<br/>```</code></pre></li></ul>"
},
"pagination": {
"prev": "Prev",

View File

@ -414,7 +414,7 @@ const Ask = () => {
{t('title', { keyPrefix: 'how_to_format' })}
</Card.Header>
<Card.Body
className="fmt"
className="fmt small"
dangerouslySetInnerHTML={{
__html: t('description', { keyPrefix: 'how_to_format' }),
}}