Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README-EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ $ npm install mavon-editor --save
| name | type | default value | describe |
| -------- | :---------: | :------------: | ------- |
| value | String | | Initial value |
| language | String | zh-CN | Language switch, zh-CN: Simplified Chinese , en: English , fr: French, pt-BR: Brazilian Portuguese |
| language | String | zh-CN | Language switch, zh-CN: Simplified Chinese , en: English , fr: French, pt-BR: Brazilian Portuguese, ru: Russian |
| fontSize | String | 15px | font-size of edit area |
| scrollStyle| Boolean | true | Open the scroll bar style(Temp only support chrome) |
| boxShadow | Boolean | true | css: box-shadow of mavonEditor |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ $ npm install mavon-editor --save
| name 名称 | type 类型 | default 默认值 | describe 描述 |
| ------------ | :-----: | :---------: | ---------------------------------------- |
| value | String | | 初始值 |
| language | String | zh-CN | 语言选择,暂支持 zh-CN: 中文简体 , en: 英文 , fr: 法语, pt-BR: 葡萄牙语 |
| language | String | zh-CN | 语言选择,暂支持 zh-CN: 中文简体 , en: 英文 , fr: 法语, pt-BR: 葡萄牙语, ru: 俄语 |
| fontSize | String | 15px | 编辑区域文字大小 |
| scrollStyle | Boolean | true | 开启滚动条样式(暂时仅支持chrome) |
| boxShadow | Boolean | true | 开启边框阴影 |
Expand Down
2 changes: 1 addition & 1 deletion dist/mavon-editor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mavon-editor",
"version": "2.6.9",
"version": "2.6.10",
"description": "Vue markdown editor",
"main": "dist/mavon-editor.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/dev/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<option value="en">English</option>
<option value="fr">Français</option>
<option value="pt-BR">Português</option>
<option value="ru">Русский</option>
</select>
<section class="page-header">
<h1 class="project-name">mavonEditor</h1>
Expand Down
6 changes: 5 additions & 1 deletion src/dev/assets/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,21 @@ import help_zh_CN from './lang/zh-CN/help_zh-CN.md'
import help_en from './lang/en/help_en.md'
import help_fr from './lang/fr/help_fr.md'
import help_pt_BR from './lang/fr/help_pt-BR.md'
import help_ru from './lang/fr/help_ru.md'
import words_zh_CN from './lang/zh-CN/words_zh-CN.json'
import words_en from './lang/en/words_en.json'
import words_fr from './lang/fr/words_fr.json'
import words_pt_BR from './lang/fr/words_pt-BR.json'
import words_ru from './lang/fr/words_ru.json'
export const CONFIG = {
'help_zh-CN': help_zh_CN,
'help_pt-BR': help_pt_BR,
'help_en': help_en,
'help_fr': help_fr,
'help_ru': help_ru,
'words_zh-CN': words_zh_CN,
'words_pt-BR': words_pt_BR,
'words_en': words_en,
'words_fr': words_fr,
}
'words_ru': words_ru,
}
203 changes: 203 additions & 0 deletions src/dev/assets/lang/ru/help_ru.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@

@[toc](Catalog)

Markdown помощь
===
> Подробнее: [http://commonmark.org/help/](http://commonmark.org/help/)

## **Полужирный**
```
**Полужирный**
__Полужирный__
```
## *Курсив*
```
*Курсив*
_Курсив_
```
## Загаловок
```
# h1 #
h1
====
## h2 ##
h2
----
### h3 ###
#### h4 ####
##### h5 #####
###### h6 ######
```
## Разделительная линия
```
***
---
```
****
## ^Верхний^индекс & ~Нижний~индекс
```
верхний x^2^
нижний H~2~0
```
## ++Подчеркнутый++ & ~~Зачеркнутый~~
```
++Подчеркнутый++
~~Зачеркнутый~~
```
## ==Отметка==
```
==Отметка==
```
## Цитата

```
> Цитата
>> Цитата 2
>>> Цитата 3
...
```

## Спосок
```
ol
1.
2.
3.
...

ul
-
-
...
```

## Список задач

- [x] Задача 1
- [ ] Задача 2

```
- [x] Задача 1
- [ ] Задача 2
```

## Ссылка
```
Ссылка
[Текст](www.baidu.com)

Ссылка изображения
![Текст](http://www.image.com)
```
## Код
\``` type

code block

\```

\` code \`

```c++
int main()
{
printf("hello world!");}
```
`code`

## Таблица
```
| th1 | th2 | th3 |
| :-- | :--: | ----: |
| left | center | right |
```
| th1 | th2 | th3 |
| :-- | :--: | ----: |
| left | center | right |
| ---------------------- | ------------- | ----------------- |
## Сноска
```
Привет[^Привет]
```

Тут что-то непонятное[^Привет]

[^Привет]: А тут объяснение

## Emojis
Подробнее: [https://www.webpagefx.com/tools/emoji-cheat-sheet/](https://www.webpagefx.com/tools/emoji-cheat-sheet/)
```
:laughing:
:blush:
:smiley:
:)
...
```
:laughing::blush::smiley::)

## $\KaTeX$ Mathematics

Можно выводить такие формулы:$x_i + y_i = z_i$ and $\sum_{i=1}^n a_i=0$
А также в одну строку:
$$\sum_{i=1}^n a_i=0$$
Подробнее:
- [katex](http://www.intmath.com/cg5/katex-mathjax-comparison.php)
- [katex function](https://github.com/Khan/KaTeX/wiki/Function-Support-in-KaTeX)
- [latex](https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference)

## Разметка

::: hljs-left
`::: hljs-left`
`left`
`:::`
:::

::: hljs-center
`::: hljs-center`
`center`
`:::`
:::

::: hljs-right
`::: hljs-right`
`right`
`:::`
:::

## Список определений

Термин 1

: Определение 1

Термин 2 с использованием *разметки*

: Определение 2

{ Какой-нибудь код, часть определения 2 }
Третий параграф определения 2.
```
Термин 1

: Определение 1

Термин 2 с использованием *разметки*

: Определение 2

{ Какой-нибудь код, часть определения 2 }
Третий параграф определения 2.
```

## Сокращения
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
The HTML specification
is maintained by the W3C.
```
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
The HTML specification
is maintained by the W3C.
```
54 changes: 54 additions & 0 deletions src/dev/assets/lang/ru/words_ru.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"start_editor": "Начните редактирование...",
"navigation_title": "Навигация",
"tl_bold": "Полужирный",
"tl_italic": "Курсив",
"tl_header": "Загаловоки",
"tl_header_one": "Загаловок 1",
"tl_header_two": "Загаловок 2",
"tl_header_three": "Загаловок 3",
"tl_header_four": "Загаловок 4",
"tl_header_five": "Загаловок 5",
"tl_header_six": "Загаловок 6",
"tl_underline": "Подчеркнутый",
"tl_strikethrough": "Зачеркнутый",
"tl_mark": "Отметка",
"tl_superscript": "Верхний индекс",
"tl_subscript": "Нижний индекс",
"tl_quote": "Цитата",
"tl_ol": "Нумерованный список",
"tl_ul": "Список",
"tl_link": "Ссылка",
"tl_image": "Ссылка изображения",
"tl_code": "Код",
"tl_table": "Таблица",
"tl_undo": "Отменить",
"tl_redo": "Вернуть",
"tl_trash": "Удалить",
"tl_save": "Сохранить",
"tl_navigation_on": "Показать навигацию",
"tl_navigation_off": "Скрыть навигацю",
"tl_preview": "Предпросмотр",
"tl_aligncenter": "Выровнять по центру",
"tl_alignleft": "Выровнять по левому краю",
"tl_alignright": "Выровнять по правому краю",
"tl_edit": "Редактор",
"tl_single_column": "Одно поле",
"tl_double_column": "Два поля",
"tl_fullscreen_on": "Полноэкранный режим",
"tl_fullscreen_off": "Выключить полноэкранный режим",
"tl_read": "Режим чтения",
"tl_html_on": "Показать HTML",
"tl_html_off": "Убрать HTML",
"tl_help": "Markdown помощь",
"tl_upload": "Загрузить изображение",
"tl_upload_remove": "Удалить",
"tl_popup_link_title": "Добавить ссылку",
"tl_popup_link_text": "Текст ссылки",
"tl_popup_link_addr": "Адрес ссылки",
"tl_popup_img_link_title": "Локальное изображение",
"tl_popup_img_link_text": "Текст изображения",
"tl_popup_img_link_addr": "Ссылка изображения",
"tl_popup_link_sure": "Добавить",
"tl_popup_link_cancel": "Отменить"
}
8 changes: 6 additions & 2 deletions src/lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,24 @@ import help_zh_CN from './lang/zh-CN/help_zh-CN.md'
import help_en from './lang/en/help_en.md'
import help_fr from './lang/fr/help_fr.md'
import help_pt_BR from './lang/pt-BR/help_pt-BR.md'
import help_ru from './lang/ru/help_ru.md'
import words_zh_CN from './lang/zh-CN/words_zh-CN.json'
import words_en from './lang/en/words_en.json'
import words_fr from './lang/fr/words_fr.json'
import words_pt_BR from './lang/pt-BR/words_pt-BR.json'
import words_ru from './lang/ru/words_ru.json'
export const CONFIG = {
'help_zh-CN': help_zh_CN,
'help_pt-BR': help_pt_BR,
'help_en': help_en,
'help_fr': help_fr,
'help_ru': help_ru,
'words_zh-CN': words_zh_CN,
'words_pt-BR': words_pt_BR,
'words_en': words_en,
'words_fr': words_fr,
'langList': ['en', 'zh-CN', 'fr', 'pt-BR'],
'words_ru': words_ru,
'langList': ['en', 'zh-CN', 'fr', 'pt-BR', 'ru'],
'toolbars': {
'bold': true,
'italic': true,
Expand Down Expand Up @@ -59,4 +63,4 @@ export const CONFIG = {
'help': true,
'preview': true
}
};
};
Loading