retext

retext-projectGPL-2.0活跃维护

一款用 Python 写的 Markdown 和 reStructuredText 编辑器,支持实时预览和语法高亮,适合写文档和笔记时专注排版。

ReText: Simple but powerful editor for Markdown and reStructuredText

8.1.0发布于 2025-01-09 18:55 UTC2,063star219fork同步于 2026-11-10 17:47 UTC

怎么上手

由 README 提炼,执行前请确认
pip3 install ReText
硬件要求按 README 说明

README 未说明硬件要求;需 Python 3.9 或更高版本,依赖 PyQt6 与 Markups 4.0+,属于桌面 GUI 应用

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

基于 Markups 的 Markdown 与 reStructuredText 桌面编辑器,支持多标记语言实时预览

一款用 Python 写的 Markdown 和 reStructuredText 编辑器,支持实时预览和语法高亮,适合写文档和笔记时专注排版。

核心能力

  • 基于 Markups 模块支持 Markdown、reStructuredText、Textile 和 AsciiDoc
  • 可用 Python 模块扩展自定义标记语言支持
  • 提供带 JavaScript 支持的 WebEngine 预览引擎
  • 集成 pyenchant 拼写检查与 chardet 编码检测
  • 通过 Transifex 支持多语言界面翻译

容易踩的坑

需 Python 3.9 及以上版本,PyQt6 和 Markups 4.0+ 由 pip 自动安装;拼写检查、编码检测和 WebEngine 预览需额外安装 pyenchant、chardet、PyQt6-WebEngine;开发快照需用 lrelease 手动编译翻译文件

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本8.1.0
  1. 8.1.0ReText 8.1.0最新正式版2025-01-09 · 2025-01-09 18:55 UTC
    • Dependency changes:
      • Python 3.9 or later is now required.
      • Markups 4.0 or later is now required.
    • Improvements and bugs fixed:
      • Issue #622 — added support for Ctrl+Tab and Ctrl+Shift+Tab for switching tabs.
      • PR #634 — WebEngine previewer now shows link on hover (contributed by @red-kite).
      • Issue #623, PR #640 — changed mouse cursor to pointing hand on link hover (contributed by @donjan).
      • Added F9 shortcut for showing/hiding directory tree dynamically.
      • In the directory tree, for files with long names the full name is shown in a tooltip.
      • Issue #383 — splitter state and WebEngine preview zoom factor are now cached between runs.
      • Preferences dialog now has links to open the selected stylesheet file and working directories externally.
      • It is now possible to pass a directory on the command line, it will be shown in the tree.
      • Issue #649 — pasted image URLs are now converted to image markup.
      • Issue #650 — pressing Up on the first line moves the cursor to the beginning of the document, and pressing Down on the last line moves it to the end of the document.
      • When the system theme is dark, Qt WebEngine now uses dark mode too.
      • Issue #617 — added markdownHeaders setting for the highlighter.
      • Issue #489 — added initial AsciiDoc support (beta).
      • Issue #519 — added Ctrl+H shortcut for viewing HTML code.
    • Internal changes:
      • PR #592 — auto-generated config options were moved to a separate file, cache.conf (contributed by @okkomakkonen).
      • Build system was ported to pyproject.toml.
      • Adopted ruff for code quality checks.
    • Translation updates:
      • Danish (contributed by Morten Juhl-Johansen).
      • Dutch (contributed by Heimen Stoffels).
      • Irish (new, contributed by Aindriú Mac Giolla Eoin).
      • Italian (contributed by albanobattistella).
      • Ukrainian (contributed by dmytro22).
  2. 8.0.2ReText 8.0.22024-03-16 · 2024-03-16 17:48 UTC
    查看更新说明
    • Improvements and bugs fixed:
      • Fixed synchronized scrolling for zoom factors other than 1 (contributed by @Griffon26).
      • Stopped passing .desktop suffix to setDesktopFileName() (contributed by @cjmayo in #633).
      • Issue #98 — Made mdx_posmap not break indented code blocks which use pymdownx.superfences extension.
      • Issue #637 — Fixed crash when clicking on line information area.
    • Translations updated:
      • Basque (contributed by Aitor Salaberria).
      • German (contributed by cosmic_snow).
      • Korean (contributed by Minpa Lee).
      • Ukrainian (contributed by Oleksandr Tsvirkun).

    Full Changelog: https://github.com/retext-project/retext/compare/8.0.1...8.0.2

  3. 8.0.1ReText 8.0.12023-05-28 · 2023-05-28 18:24 UTC
    查看更新说明
    • Bugs fixed:
      • Issue #594 — Fix opening files in existing window by relative path.
      • Issue #597 — Fix unreachable text at the bottom of the file.
      • Issue #599 — Fix truncating file when new text cannot be encoded with the selected encoding.
      • Issue #604 — Allow WebEngine renderer to load iframes such as YouTube embeds.
      • Issue #609 — Fix incorrect font size with WebEngine renderer.
      • Issue #620 — LICENSE_GPL file now has text of GPL v2.
    • Translations updated:
      • Dutch (contributed by Heimen Stoffels).
      • French (contributed by uGwA0XP3cm2w).
      • Italian (contributed by Alessandro Melillo).
      • Norwegian (Bokmål) (new, contributed by Sverre Våbenø).
      • Persian (contributed by Hadi F and Arya Younesi).
      • Portuguese (Brazil) (contributed by Rodrigo Zimmermann).
      • Spanish (contributed by Antonio Villamarin).
      • Turkish (contributed by Serkan ÖNDER).
  4. 8.0.0ReText 8.0.02022-07-23 · 2022-07-23 21:32 UTC
    查看更新说明
    • Dependency changes:
      • ReText is now using Qt 6 and PyQt6.
      • PyQt6-WebEngine is required for JavaScript support.
      • WebKit is no longer supported.
    • Improvements and bugs fixed:
      • PR #543 — Added Apply button to Preferences dialog (contributed by Amos Kong).
      • Issue #384 — Save button is now enabled in auto-save mode.
      • Issue #536 — Support spell checking for multiple languages.
      • Issue #555 — Support setting bold font for editor.
      • Issue #581 — Added backtick key to surround keys.
      • Run-time resources are now installed into package directory.
      • setup.py now allows building wheels.
    • Translations updated:
      • Polish (contributed by Maciej Haudek).
      • Spanish (contributed by Pedro Torcatt).
      • Turkish (contributed by Serkan ÖNDER in #556).
  5. 7.2.3ReText 7.2.32022-02-03 · 2022-02-03 20:53 UTC
    查看更新说明
    • Fixed TypeError crash with Python 3.10 and Qt WebKit (#573, #574).
    • Translations updated:
      • Chinese (China) (contributed by liulitchi).
      • Portuguese (Brazil) (contributed by Igor Garcia and Christiano Morais).
      • Slovak (contributed by Jose Riha).

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Welcome to ReText!

    GitHub Actions status

    ReText is a simple but powerful editor for markup languages. It is based on Markups module which supports Markdown, reStructuredText, Textile and AsciiDoc. One can also add support for custom markups using Python modules.

    ReText on Plasma 5 desktop

    To install ReText, make sure that you have Python (3.9 or later) installed, and run pip3 install ReText. To avoid system-wide installation, you can create a virtual environment and install from there. You can also manually download the tarball from PyPI or clone the repository, and then run ./retext.py.

    ReText requires PyQt6 and Markups (4.0 or later) to run. When you run pip3 install ReText, pip will install them automatically, but you can also install manually and specify markups that you are going to use using extras syntax, e.g.:

    pip3 install Markups[markdown,restructuredtext,textile]
    

    We also recommend having these packages installed:

    • pyenchant — for spell checking support
    • chardet — for encoding detection support
    • PyQt6-WebEngine — a more powerful preview engine with JavaScript support

    Translation files are already compiled for release tarballs and will be automatically loaded. For development snapshots, compile translations using lrelease ReText/locale/*.ts command (on Debian-based systems, use /usr/lib/qt6/bin/lrelease from qt6-l10n-tools package). Translation files can also be loaded from /usr/share/retext/ directory.

    You can translate ReText into your language on Transifex.

    ReText is Copyright 2011–2025 Dmitry Shachnev, 2011–2023 Maurice van der Pot, and is licensed under GNU GPL (v2+) license, the current version is available in LICENSE_GPL file.

    ReText icon is based on accessories-text-editor icon from the Faenza theme.

    You can read more about ReText in the wiki.