translated

This commit is contained in:
chtholly 2022-08-29 16:12:36 +08:00 committed by GitHub
parent 5c9f108db5
commit a50cb725ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 134 additions and 132 deletions

View File

@ -1,132 +0,0 @@
[#]: subject: "Marktext is an Excellent Editor Even for Those Who Dont Know Markdown"
[#]: via: "https://itsfoss.com/marktext-editor/"
[#]: author: "Abhishek Prakash https://itsfoss.com/"
[#]: collector: "lkxed"
[#]: translator: " Chth0lly"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
Marktext is an Excellent Editor Even for Those Who Dont Know Markdown
======
Another Markdown editor? Have we not seen all kinds of Markdown editors already?
I understand that feeling. If you are a Markdown lover, from [Joplin][1] to [Zettlr][2], you have tried most of them. And if you are not a Markdown fan, you probably dont care about these editors.
Markdown is an excellent markup language specially for people who write for the web. I am not going to go into the details here. We have an [excellent Markdown starters guide][3] if you are interested in learning more about it.
My focus here is on introducing you to (another) Markdown editor, Its called [Marktext][4] and it is an Electron app (dont hate me just yet).
I found it to be an excellent editor. It works as good as it looks. Let me share my experience and its features.
### Marktext: A Markdown editor for everyone
Hate [Electron framework][5] as much as possible but you cannot deny that Electron-based applications have a clean, modern interface.
![Marktext interface][6]
I prefer dark mode and hence I switched the theme. There are six themes in total for you to choose from.
![Marktext dark theme][7]
You can start writing the text immediately. If you dont remember the text, dont worry. Just use the insert option with @ and it will give you a number of options such as:
* Headings
* Divider line
* Table
* Mathematical equations
* HTML block
* Code block
* Quote block
* Lists
* Checklist
* Diagrams using vega-lite.js, flowchart.js, js-sequence and PlantUML
![Use various document elements in the editor by pressing @][8]
Select part of text and it gives you additional formatting option to change the text to bold, italic, underline, strike out. You can also highlight the text with yellow background text, convert them in inline code or inline math and create hyperlinks.
![Text formatting options][9]
Marktext also supports images. Though you know that images are not part of markdown (.md) file. They are external elements but you have the option to create a local assets folder in the same location where your Markdown file is saved.
![Images are supported too][10]
Adding image could have been made easier by including it in the insert menu. At the monet, you can add images by select texting and chosing the image option from the format options or use Ctrl+Shift+I keys. There is no scope for adding alt text or captions to the images. This should be improved.
I liked the tables feature in Marktext. You can insert table with predefined size. If you changed your mind, you can resize it as easily. You can move the rows and columns, all with mouse drag and drop without touching the underlying code.
![Tables are very well supported in Marktext][11]
You can enable the sidebar view. The sidebar gives you three options. You can open folders containing multiple markdown files, perform a global search in all the files in the opened folder and show table of contents for the currently opened file. The table of content is automatically generated based on the subheadings.
![Sidebar view has three options: Show folder content, global search and table of content][12]
The gear icon at the bottom gives you additional settings to configure the editor. You can choose the themes, change image settings, views, enable auto-save and modify many more settings.
![Configuration and settings][13]
### Installing Marktext
Marktext is a cross-platform, open source application. Along with Linux, it is available for Windows and macOS.
For Linux, you get the options of AppImage and Flatpak. You can get the AppImage from[the release page][14].
I chose the Flatpak version for better system integration. And it did work well because Marktext automatically became the default editor for .md files on my Ubuntu 22.04 system.
Please ensure that you have Flatpak support enabled on your system and then add Flathub repo:
```
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
```
After that, use the command below to install it on your system:
```
flatpak install flathub com.github.marktext.marktext
```
If you dont like it, you can remove it using this command:
```
fkatpak uninstall com.github.marktext.marktext
```
### Verdict
There are plenty of small features like word count, math latex, spell checker or copy-pasting as markdown or HTML and I leave them up to you to discover.
Ill be honest. Despite using Markdown for writing articles for years, I dont remember all the syntaxes. I remember the common ones for headings, lists, code block etc but if I have to create a table, Ill have to search the web.
I have [experimented with a number of markdown editors][15] and there are plenty of good ones there. However, I took an instant liking to Marktext and it is going to be on my system for a long time.
If you try it, do share your experience in the comment section.
--------------------------------------------------------------------------------
via: https://itsfoss.com/marktext-editor/
作者:[Abhishek Prakash][a]
选题:[lkxed][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/
[b]: https://github.com/lkxed
[1]: https://itsfoss.com/joplin/
[2]: https://itsfoss.com/zettlr-markdown-editor/
[3]: https://itsfoss.com/markdown-guide/
[4]: https://github.com/marktext/marktext/
[5]: https://www.electronjs.org/
[6]: https://itsfoss.com/wp-content/uploads/2022/08/marktext-interface.png
[7]: https://itsfoss.com/wp-content/uploads/2022/08/marktext-dark-theme.png
[8]: https://itsfoss.com/wp-content/uploads/2022/08/marktext-insert-options.png
[9]: https://itsfoss.com/wp-content/uploads/2022/08/text-formatting-options-marktext.png
[10]: https://itsfoss.com/wp-content/uploads/2022/08/images-in-marktext.png
[11]: https://itsfoss.com/wp-content/uploads/2022/08/tables-in-marktext.png
[12]: https://itsfoss.com/wp-content/uploads/2022/08/sidebar-view-marktext.png
[13]: https://itsfoss.com/wp-content/uploads/2022/08/marktext-settings.png
[14]: https://github.com/marktext/marktext/releases
[15]: https://itsfoss.com/best-markdown-editors-linux/

View File

@ -0,0 +1,134 @@
[#]: subject: "Marktext is an Excellent Editor Even for Those Who Dont Know Markdown"
[#]: via: "https://itsfoss.com/marktext-editor/"
[#]: author: "Abhishek Prakash https://itsfoss.com/"
[#]: collector: "lkxed"
[#]: translator: " Chth0lly"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
即使对那些不知道Markdown的人来说Marktext也是一个绝佳的编辑器
======
又一个Markdown编辑器我们见的Markdown编辑器还少吗
我明白你的感受如果你是个Markdown爱好者你可能已经用过很多编辑器了比如 [Joplin][1] 和 [Zettlr][2],。但如果你不是的话,你可能根本就不在乎。
Markdown是一个非常好的标记语言特别是对那些在网络上写作的人来说。我不想在这里讲太多细节。但如果你有兴趣的话我们有一个[非常棒的Markdown初学者教程][3]。
这次我想推荐给你另一个Markdown编辑器它叫[Marktext][4]并且它是用Electron制作的我们都明白这什么意思先别恨我
我发现这将是一个很完美的编辑器。它运行起来和它看起来一样漂亮。下面是我这几天来的使用体验。
### Marktext: 人人可用的Markdown编辑器
尽管我很讨厌[Electron框架][5]但不得不承认基于Electron的应用都有一个干净现代的界面。
![Marktext interface][6]
我更喜欢黑暗模式主题除此之外官方还提供了5种其它主题。
![Marktext dark theme][7]
打开软件你就可以立刻进行写作,如果你不记得某个语法了,那也没有问题,输入@就可以得到语法提示,如:
* 标题
* 分隔线
* 表格
* Latex数学公式
* HTML块
* 代码块
* 引用
* 清单
* 用Vega-lite.jsFlowchart.jsJS序列和Plantuml制作的图表
* Diagrams using vega-lite.js, flowchart.js, js-sequence and PlantUML
![Use various document elements in the editor by pressing @][8]
选中文本你会得到一个格式选项框来改变文本为粗体,斜体,下划线,删除线等。你也可以用黄色背景高亮文本,并转换为行内块,行内公式或插入超链接。
![Text formatting options][9]
Marktext也支持图片。我们都知道图片不是markdown文件的一部分它们是外部元素但是你可以选择将图片保存到md文件保存的目录下。
![Images are supported too][10]
通过在插入列表中添加图片非常容易。你可以通过选择文本并且从弹出的格式选择中添加图片或使用Ctrl+Shift+快捷键。但是不能为图片添加替换文本或图片说明,这点确实需要改进。
我喜欢Marktext的表格功能。你可以直接插入预先定义好大小的图表。如有需要还可以很容易的改变大小。你可以只用鼠标移动列和行而不用担心源代码。
![Tables are very well supported in Marktext][11]
您可以启用侧边栏视图。侧边栏为您有三个主要功能。您可以打开包含多个Markdown文件的文件夹在打开的文件夹中的所有文件中执行全局搜索并显示当前打开的文件的目录。大纲的目录是根据标题自动生成的。
![Sidebar view has three options: Show folder content, global search and table of content][12]
底部的齿轮按钮是主要设置。你可以改变主题,改变图片设置,开启自动保存等等。
![Configuration and settings][13]
### 如何安装Marktext
Marktext 是一个跨平台的开源应用程序。所以不止在Linux ,你还可以在 Windows 和 macOS安装。
在LInux上你可以选择AppImage版或Flatpak版。从[这里][14]可以得到Marktext的Appimage包。
我选择了 Flatpak 版本,因为这样可以获得更好的系统集成。它运行良好,因为 Marktext 自动成为我的 Ubuntu 22.04 系统上 md 文件的默认编辑器。
请确保你有Flatpak并在你的系统上开启了之后用以下方法添加上Flathub仓库。
```
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
```
在这之后用以下命令安装Marktext到你的系统上
```
flatpak install flathub com.github.marktext.marktext
```
如果用了一段时间后你不喜欢Marktext用以下命令卸载
```
fkatpak uninstall com.github.marktext.marktext
```
### 最后
Marktext有很多小功能例如字数统计、Latex数学公式、拼写检查器或复制粘贴为Markdown或 HTML格式我留给你们自己去尝试。
实话实说,尽管多年来一直使用 Markdown 来写文章,但我也总会忘掉一此语法。我记得常见的标题、列表、代码块等,但如果我必须创建一个表格,我不得不在网上搜索。
我已经[尝试了许多Markdown编辑器][15],这其中确实有很多不错的。但是,我还是喜欢用 Marktext它会在我的系统上存在很长时间。
如果你已经用过了话,请在评论区分享您的经验。
--------------------------------------------------------------------------------
via: https://itsfoss.com/marktext-editor/
作者:[Abhishek Prakash][a]
选题:[lkxed][b]
译者:[Chth0lly](https://github.com/译者ID)
校对:[校对者ID](https://github.com/)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/
[b]: https://github.com/lkxed
[1]: https://itsfoss.com/joplin/
[2]: https://itsfoss.com/zettlr-markdown-editor/
[3]: https://itsfoss.com/markdown-guide/
[4]: https://github.com/marktext/marktext/
[5]: https://www.electronjs.org/
[6]: https://itsfoss.com/wp-content/uploads/2022/08/marktext-interface.png
[7]: https://itsfoss.com/wp-content/uploads/2022/08/marktext-dark-theme.png
[8]: https://itsfoss.com/wp-content/uploads/2022/08/marktext-insert-options.png
[9]: https://itsfoss.com/wp-content/uploads/2022/08/text-formatting-options-marktext.png
[10]: https://itsfoss.com/wp-content/uploads/2022/08/images-in-marktext.png
[11]: https://itsfoss.com/wp-content/uploads/2022/08/tables-in-marktext.png
[12]: https://itsfoss.com/wp-content/uploads/2022/08/sidebar-view-marktext.png
[13]: https://itsfoss.com/wp-content/uploads/2022/08/marktext-settings.png
[14]: https://github.com/marktext/marktext/releases
[15]: https://itsfoss.com/best-markdown-editors-linux/