MarkText: Open Source Markdown Editor with Live Preview on Electron

MarkText: Open Source Markdown Editor with Live Preview on Electron

2022-10-10 0 1,361
Resource Number 44848 Last Updated 2025-02-24
¥ 0 USD Upgrade VIP
Download Notice Demo
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

Product Details 商品属性

  • Language: HTML
  • Database:
  • License: License-Free
  • Source Code: Fully Open Source
  • Specification: Full Website Source
  • Delivery: Automatic (instant download after payment)

The MarkText recommended in this issue is a 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”>

  • 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”>

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.

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.

class=”pgc-h-arrow-right”>

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

class=”pgc-h-arrow-right”>

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”> Theme style
 
7d46c0e34f7a4274a673eee27d107fd6noop.image_

—END—

Open source License: MIT License

资源下载此资源为免费资源立即下载
Telegram:@John_Software
☆☆☆☆☆0 pts · 0 reviews
Updated 2025-02-24

Q&A

No questions yet. Ask the seller!

Reviews

No reviews yet. Share your experience after purchase.

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.

TopTinker Education & HR MarkText: Open Source Markdown Editor with Live Preview on Electron https://toptinker.com/44848.html

商家类型:个人(声明)

Share free open-source source code

Q&A
  • 1. Automatic: After making an online payment, click the (Download) link to download the source code; 2. Manual: Contact the seller or the official to check if the template is consistent. Then, place an order and make payment online. The seller ships the goods, and both parties inspect and confirm that there are no issues. TopTinker will then settle the payment for the seller. Note: Please ensure to place your order and make payment through TopTinker. If you do not place your order and make payment through TopTinker, and the seller sends fake source code or encounters any issues, TopTinker will not assist in resolving them, nor can we guarantee your funds!
View details
  • 1. Default transaction cycle for source code: The seller manually ships the goods within 1-3 days. The amount paid by the user will be held in escrow by TopTinker until 7 days after the transaction is completed and both parties confirm that there are no issues. TopTinker will then settle with the seller. In case of any disputes, TopTinker will have staff to assist in handling until the dispute is resolved or a refund is made! If the buyer places an order and makes payment not through TopTinker, any issues and disputes have nothing to do with TopTinker, and TopTinker will not be responsible for any liabilities!
View details
  • 1. TopTinker will permanently archive the transaction process between both parties and snapshots of the traded goods to ensure the authenticity, validity, and security of the transaction! 2. TopTinker cannot guarantee services such as "permanent package updates" and "permanent technical support" after the merchant's commitment. Buyers are advised to identify these services on their own. If necessary, they can contact TopTinker for assistance; 3. When both website demonstration and image demonstration exist in the source code, and the text descriptions of the website and images are inconsistent, the text description of the image shall prevail as the basis for dispute resolution (excluding special statements or agreements); 4. If there is no statement such as "no legal basis for refund" or similar content, any indication on the product that "once sold, no refunds will be supported" or other similar declarations shall be deemed invalid; 5. Before the buyer places an order and makes payment, the transaction details agreed upon by both parties via WhatsApp or email can also serve as the basis for dispute resolution (in case of any inconsistency between the agreement and the description of the conflict, the agreement shall prevail); 6. Since chat records and email records can serve as the basis for dispute resolution, both parties should only communicate with each other through the contact information left on the system when contacting each other, in order to prevent the other party from denying their own commitments. 7. Although the probability of disputes is low, it is essential to retain important information such as chat records, text messages, and email records, in case a dispute arises, so that TopTinker can intervene quickly.
View details
  • 1. As a third-party intermediary platform, TopTinker solely protects transaction security and the rights and interests of both buyers and sellers based on the transaction contract (product description, agreed content before the transaction); 2. For online trading projects not on the TopTinker platform, any consequences are unrelated to this platform; regardless of the reason why the seller requests an offline transaction, please contact the administrator to report.
View details

Related Source code

TopTinker Customer Service

24-hour online professional services