MarkText: Simple and elegant open source Markdown editor

MarkText: Simple and elegant open source Markdown editor

2022-10-10 0 750
Resource Number 44848 Last Updated 2025-02-24
¥ 0USD Upgrade VIP
Download Now Matters needing attention
Can't download? Please contact customer service to submit a link error!
Value-added Service: Installation Guide Environment Configuration Secondary Development Template Modification Source Code Installation

The MarkText recommended in this issue is a simple and elegant open source Markdown editor.

MarkText: Simple and elegant open source Markdown editor插图

MarkText is Markdown’s live preview (WYSIWYG) editor with a variety of functional Markdown extensions, our philosophy is to keep it clean, simple, and minimal. The application is built on top of Electron using HTML, JS, and CSS. Currently we are using some native node libraries and our UI is built using Vue/Vuex. MarkText can be divided into three parts: Muya’s core, main process, and renderer process.

Muya provides live preview and markdown editing through multiple modules based on a block structure. You can think of it as an editor backend, With modules for Markdown parsing, a data store as a block structure, Markdown document conversion according to CommonMark and GitHub Flavored Markdown specifications, and some additional specifications, event listeners, and exporters, To generate standalone HTML and Markdown files, as well as a WYSIWYG editor. Muya, like MarkText, is single-threaded and uses asynchronous functions to improve performance.

class=”pgc-h-arrow-right” data-track=”4″>

  • Live preview (WYSIWYG) and a clean interface for a distraction-free writing experience.
  • supports CommonMark Spec, GitHub Flavored Markdown Spec, and optional Pandoc markdown.
  • Markdown extensions, such as mathematical expressions (KaTeX), front end, and emojis.
  • supports paragraph and inline style shortcuts to improve your writing efficiency.
  • Output HTML and PDF files.
  • Various topics: Cadmium Light, Material Dark, etc.
  • Multiple editing modes: source code mode, typewriter mode, focus mode.
  • Paste the image directly from the clipboard.

class=”pgc-h-arrow-right” data-track=”20″>

interface

The sidebar consists of three panels, and you can switch the sidebar by pressing CmdOrCtrl+ J:

    • Open the root directory of file system Explorer (tree view)
    • Find

in the file

  • The directory of the selected TAB

Switch tags

MarkText can be used as a single editor, but opens all files in a separate TAB. Tabs can switch B with CmdOrCtrl++Alt and reorder with drag and drop.

MarkText: Simple and elegant open source Markdown editor插图1

Open and modify markdown file

You can use the menu File -> Open File or press CmdOrCtrl+O to open the file dialog to select the reduced price file. Another way is to launch MarkText with a directory or file from the command line.

Save the file you edited

With some modifications, you can use a different file name by CmdOrCtrl+ Save file S or by using Save as .

Open a directory

MarkText also supports opening directories through CmdOrCtrl++ or the sidebar button Open Folder. After opening the directory, all files and directories are displayed in the view of the sidebar tree. The tree view allows you to open more files, browse and modify files or directories in the open root directory. Above the tree view is the location of all open files. You can also use Quick Open (+) to quickly open files from an open root directory or editor, and navigate by the arrow keys or select files by mouse. To view another sidebar panel, such as looking in a file, click the left sidebar icon.

MarkText: Simple and elegant open source Markdown editor插图2

class=”pgc-h-arrow-right” data-track=”37″>

You can control and modify all preferences or preferences.json in the application data directory for editing.

  • General application Settings
  • Settings that control the appearance of the editor
  • Markdown related Settings
  • Application theme
  • How to handle the image options

MarkText: Simple and elegant open source Markdown editor插图3

class=”pgc-h-arrow-right” data-track=”44″>

Apple

You can either download the latest version from the release page with marktext-%version%.dmg or install MarkText using the homebrew cask. To use Homebrew-cask, you only need to install Homebrew.

brew install  - cask tag text < / span > < / code > < / pre >

Windows

 

Windows simply download and install MarkText through the install wizard (), marktext-setup-%version%.exe then choose whether to install by user or machine wide. Alternatively, install MarkText using a package manager, such as Chocolatey or Winget.

 

To use Chocolatey, you need to install Chocolatey:

 

choco install marktext

other

Linux, macOS, and Windows all binaries can be downloaded from the release page.

Example

Open a markdown document and render it

MarkdownDocument is a document that represents a markdown file or untitled document on disk. To get the markdown document, you can use a function that asynchronously returns a RawMarkdownDocument (= with some additional information) in the main process loadMarkdownFile. MarkdownDocument

General steps to open a file:

    • Click File -> Open File and display a file dialog box that issues the app-open-file-by-id file with the editor window ID to open the file and resolve the absolute file path in it.
    • The application (App instance) tries to find the editor for the specified openTab and calls the editor window. If an editor window does not exist, a new one is created.
    • The editor window attempts to load the markdown file, loadMarkdownFile and sends the result mt::open-new-tab to the renderer process via an event.
    • Each open file is also added to the file system viewer, and the full path is saved to keep track of the files open in the current editor window.

< li data – track = “64” > the incident in the SRC/renderer/store/editor. The trigger in the js (renderer process), some checks and create a said on the document and the new document TAB status.

  • The newly created TAB is either opened and file-changed issues an event, or simply added to the TAB state.
  • Both Muya and the source code editor listen for this event and change the markdown document accordingly.

 

class=”pgc-h-arrow-right” data-track=”68″> Theme style

MarkText: Simple and elegant open source Markdown editor插图4

 

7d46c0e34f7a4274a673eee27d107fd6noop.image_

MarkText: Simple and elegant open source Markdown editor插图6

graphite lamp

MarkText: Simple and elegant open source Markdown editor插图7MarkText: Simple and elegant open source Markdown editor插图8

—END—

Open source License: MIT License

资源下载此资源为免费资源立即下载
Telegram:@John_Software

Disclaimer: This article is published by a third party and represents the views of the author only and has nothing to do with this website. This site does not make any guarantee or commitment to the authenticity, completeness and timeliness of this article and all or part of its content, please readers for reference only, and please verify the relevant content. The publication or republication of articles by this website for the purpose of conveying more information does not mean that it endorses its views or confirms its description, nor does it mean that this website is responsible for its authenticity.

Ictcoder Free source code MarkText: Simple and elegant open source Markdown editor https://ictcoder.com/kyym/marktext-simple-and-elegant-open-source-markdown-editor.html

Share free open-source source code

Q&A
  • 1, automatic: after taking the photo, click the (download) link to download; 2. Manual: After taking the photo, contact the seller to issue it or contact the official to find the developer to ship.
View details
  • 1, the default transaction cycle of the source code: manual delivery of goods for 1-3 days, and the user payment amount will enter the platform guarantee until the completion of the transaction or 3-7 days can be issued, in case of disputes indefinitely extend the collection amount until the dispute is resolved or refunded!
View details
  • 1. Heptalon will permanently archive the process of trading between the two parties and the snapshots of the traded goods to ensure that the transaction is true, effective and safe! 2, Seven PAWS can not guarantee such as "permanent package update", "permanent technical support" and other similar transactions after the merchant commitment, please identify the buyer; 3, in the source code at the same time there is a website demonstration and picture demonstration, and the site is inconsistent with the diagram, the default according to the diagram as the dispute evaluation basis (except for special statements or agreement); 4, in the absence of "no legitimate basis for refund", the commodity written "once sold, no support for refund" and other similar statements, shall be deemed invalid; 5, before the shooting, the transaction content agreed by the two parties on QQ can also be the basis for dispute judgment (agreement and description of the conflict, the agreement shall prevail); 6, because the chat record can be used as the basis for dispute judgment, so when the two sides contact, only communicate with the other party on the QQ and mobile phone number left on the systemhere, in case the other party does not recognize self-commitment. 7, although the probability of disputes is very small, but be sure to retain such important information as chat records, mobile phone messages, etc., in case of disputes, it is convenient for seven PAWS to intervene in rapid processing.
View details
  • 1. As a third-party intermediary platform, Qichou protects the security of the transaction and the rights and interests of both buyers and sellers according to the transaction contract (commodity description, content agreed before the transaction); 2, non-platform online trading projects, any consequences have nothing to do with mutual site; No matter the seller for any reason to require offline transactions, please contact the management report.
View details

Related Article

make a comment
No comments available at the moment
Official customer service team

To solve your worries - 24 hours online professional service