mirror of https://gitee.com/answerdev/answer.git
fix(#997): optimize editor tips
This commit is contained in:
parent
25bb439f54
commit
8878c28fe1
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"how_to_format": {
|
||||
"title": "How to Format",
|
||||
"description": "<ul><li><p>to make links</p><pre><code><https: //url.com><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 > 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><https://url.com><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 > 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",
|
||||
|
|
|
@ -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' }),
|
||||
}}
|
||||
|
|
Loading…
Reference in New Issue