mirror of
https://github.com/marktext/marktext.git
synced 2025-05-02 22:41:53 +08:00
update readme (#2008)
* update readme * remove unused codes * Update third party * remove unused codes
This commit is contained in:
parent
904d4b4ff3
commit
bf322a0231
@ -75,7 +75,7 @@
|
||||
<span>:cn:</span>
|
||||
</a>
|
||||
<a href="docs/i18n/zh_tw.md#readme">
|
||||
<span>:taiwan:</span>
|
||||
<span>:cn:</span>
|
||||
</a>
|
||||
<a href="docs/i18n/pl.md#readme">
|
||||
<span>:poland:</span>
|
||||
@ -196,7 +196,7 @@ Names and company logos of all sponsors (from both Patreon and Open Collective)
|
||||
|
||||
|  |  |  |
|
||||
|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
|
||||
| [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext.dmg) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-setup.exe) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-x86_64.AppImage) |
|
||||
| [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext.dmg) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-setup.exe) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-x86_64.AppImage) |
|
||||
|
||||
Want to see new features of the latest version? Please refer to [CHANGELOG](.github/CHANGELOG.md).
|
||||
|
||||
|
@ -119,7 +119,7 @@
|
||||
|
||||
|  |  |  |
|
||||
|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
|
||||
| [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-0.16.0.dmg) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-setup-0.16.0.exe) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-0.16.0-x86_64.AppImage) |
|
||||
| [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext.dmg) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-setup.exe) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-x86_64.AppImage) |
|
||||
|
||||
Vous ne trouvez pas votre système? Aller sur la [page des releases](https://github.com/marktext/marktext/releases). Toujours pas? Ouvrez une [issue](https://github.com/marktext/marktext/issues).
|
||||
|
||||
|
@ -191,7 +191,7 @@ Patreonを介した寄付は、Mark Textの開発および維持を行ってい
|
||||
|
||||
|  |  |  |
|
||||
|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
|
||||
| [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext.dmg) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-setup.exe) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-x86_64.AppImage) |
|
||||
| [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext.dmg) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-setup.exe) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-x86_64.AppImage) |
|
||||
|
||||
このバージョンでの新着情報をご確認いただくには、[CHANGELOG](../../.github/CHANGELOG.md)を参照してください。
|
||||
|
||||
|
@ -118,7 +118,7 @@
|
||||
|
||||
|  |  |  |
|
||||
|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
|
||||
| [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext.dmg) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-setup.exe) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-x86_64.AppImage) |
|
||||
| [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext.dmg) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-setup.exe) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-x86_64.AppImage) |
|
||||
|
||||
시스템을 찾을 수 없다면 [release page](https://github.com/marktext/marktext/releases/latest)를 참고하여라. 그래도 없으면 [issue](https://github.com/marktext/marktext/issues)를 작성하여 알려 주시면 감사하겠다.
|
||||
|
||||
|
@ -119,7 +119,7 @@
|
||||
|
||||
|  |  |  |
|
||||
|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
|
||||
| [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext.dmg) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-setup.exe) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-x86_64.AppImage) |
|
||||
| [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext.dmg) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-setup.exe) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-x86_64.AppImage) |
|
||||
|
||||
Nie znalazłeś swojego systemu? Przejdź do strony [release](https://github.com/marktext/marktext/releases). Wciąż nie znalazłeś? Zgłoś [problem](https://github.com/marktext/marktext/issues).
|
||||
|
||||
|
@ -137,14 +137,6 @@ Patrocinando pela Patreon, seu valor será enviado diretamente para Luo Ran (@jo
|
||||
|
||||
**Patrocinadores Prata**
|
||||
|
||||
<a href="https://opencollective.com/marktext#platinum-sponsors">
|
||||
<img src="https://opencollective.com/marktext/tiers/silver-sponsors.svg?avatarHeight=36&width=600">
|
||||
</a>
|
||||
|
||||
|  |  |  |
|
||||
|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
|
||||
| [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext.dmg) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-setup.exe) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-x86_64.AppImage) |
|
||||
|
||||
<a href="https://opencollective.com/marktext#platinum-sponsors">
|
||||
<img src="https://opencollective.com/marktext/tiers/bronze-sponsors.svg?avatarHeight=36&width=600">
|
||||
</a>
|
||||
@ -197,7 +189,7 @@ Patrocinando pela Patreon, seu valor será enviado diretamente para Luo Ran (@jo
|
||||
|
||||
|  |  |  |
|
||||
|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
|
||||
| [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext.dmg) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-setup.exe) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-x86_64.AppImage) |
|
||||
| [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext.dmg) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-setup.exe) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-x86_64.AppImage) |
|
||||
|
||||
Deseja ver novos recursos da versão mais recente? Por favor, consulte o [CHANGELOG](.github/CHANGELOG.md).
|
||||
|
||||
|
@ -119,7 +119,7 @@
|
||||
|
||||
|  |  |  |
|
||||
|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
|
||||
| [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext.dmg) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-setup.exe) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-x86_64.AppImage) |
|
||||
| [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext.dmg) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-setup.exe) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-x86_64.AppImage) |
|
||||
|
||||
¿No encuentras tu sistema? Ve a la [página de descargas](https://github.com/marktext/marktext/releases). ¿No se encuentra disponible tu versión? Abre una [issue](https://github.com/marktext/marktext/issues).
|
||||
|
||||
|
@ -123,7 +123,7 @@
|
||||
|
||||
|  |  |  |
|
||||
| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
||||
| [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext.dmg) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-setup.exe) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-x86_64.AppImage) |
|
||||
| [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext.dmg) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-setup.exe) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-x86_64.AppImage) |
|
||||
|
||||
Kendi sistemini bulamıyor musun? [Yayınlanma sayfasına](https://github.com/marktext/marktext/releases) git.Hala mı bulamıyorsun? Bir [issue](https://github.com/marktext/marktext/issues) aç.
|
||||
|
||||
|
@ -167,7 +167,7 @@ Mark Text 是一个使用 MIT license 的开源项目,你将一直能够从 Gi
|
||||
|
||||
|  |  |  |
|
||||
|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
|
||||
| [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext.dmg) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-setup.exe) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-x86_64.AppImage) |
|
||||
| [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext.dmg) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-setup.exe) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-x86_64.AppImage) |
|
||||
|
||||
想要看看最新版本有什么新特性?请参阅 [CHANGELOG](.github/CHANGELOG.md)。
|
||||
|
||||
|
@ -195,7 +195,7 @@ Mark Text 是 MIT 許可的開源專案,你可以持續在 GitHub 發布頁面
|
||||
|
||||
|  |  |  |
|
||||
|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
|
||||
| [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext.dmg) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-setup.exe) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-x86_64.AppImage) |
|
||||
| [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext.dmg) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-setup.exe) | [](https://github.com/marktext/marktext/releases/download/v0.16.0/marktext-x86_64.AppImage) |
|
||||
|
||||
想知道最新版本有什麼新功能嗎?請參閱 [CHANGELOG](.github/CHANGELOG.md)。
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,10 +1,7 @@
|
||||
import createDOMPurify from 'dompurify'
|
||||
import { CLASS_OR_ID, BLOCK_TYPE6 } from '../../../config'
|
||||
import { snakeToCamel } from '../../../utils'
|
||||
import sanitize from '../../../utils/dompurify'
|
||||
|
||||
const { sanitize } = createDOMPurify(window)
|
||||
|
||||
export default function htmlTag (h, cursor, block, token, outerClass) {
|
||||
const { tag, openTag, closeTag, children, attrs } = token
|
||||
const className = children ? this.getClassName(outerClass, block, token, cursor) : CLASS_OR_ID.AG_GRAY
|
||||
@ -42,11 +39,7 @@ export default function htmlTag (h, cursor, block, token, outerClass) {
|
||||
// we also recommand user not use block level element in paragraph. use block element in html block.
|
||||
// Use code !sanitize(`<${tag}>`) to filter some malicious tags. for example: <embed>.
|
||||
let selector = BLOCK_TYPE6.includes(tag) || !sanitize(`<${tag}>`) ? 'span' : tag
|
||||
<<<<<<< HEAD
|
||||
selector += `.${CLASS_OR_ID.AG_INLINE_RULE}.${CLASS_OR_ID.AG_RAW_HTML}`
|
||||
=======
|
||||
selector += `.${CLASS_OR_ID.AG_INLINE_RULE}`
|
||||
>>>>>>> master
|
||||
const data = {
|
||||
attrs: {},
|
||||
dataset: {
|
||||
|
Loading…
Reference in New Issue
Block a user