Skip to content
Open
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* Format entries with Markdown, rendered by markdown-it-py. Legacy txt2tags entries are converted to Markdown automatically, the editor highlights Markdown syntax, and the format/insert buttons now insert Markdown (@jendrikseipp).
* Fix segfault on Wayland when setting the window icon (#806, @sjg20)

# 2.42 (2025-12-28)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Needed for running RedNotebook:
* GtkSourceView (3.0+): https://wiki.gnome.org/Projects/GtkSourceView
* Python (3.8+): https://www.python.org
* PyYAML (3.10+): https://pyyaml.org
* markdown-it-py, mdit-py-plugins and linkify-it-py: https://github.com/executablebooks/markdown-it-py
* WebKitGTK (2.16+): https://webkitgtk.org (only on Linux and macOS)
* PyEnchant for spell checking (1.6+): https://pypi.org/project/pyenchant/ (optional)

Expand Down
3 changes: 3 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ Depends: ${python3:Depends},
gir1.2-pango-1.0,
gir1.2-webkit2-4.1 | gir1.2-webkit2-4.0,
python3-gi,
python3-linkify-it,
python3-markdown-it,
python3-mdit-py-plugins,
python3-yaml
Recommends: python3-enchant
Description: Modern desktop diary and personal journaling tool
Expand Down
34 changes: 34 additions & 0 deletions dev/whitelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,37 @@ def __getattr__(self, _):
Dummy().error_par
Dummy().goodbye_par
Dummy().example_entry

# markdownmarkup renderer methods are dispatched dynamically by token type.
Dummy().blockquote_close
Dummy().blockquote_open
Dummy().bullet_list_close
Dummy().bullet_list_open
Dummy().code_block
Dummy().code_inline
Dummy().em_close
Dummy().em_open
Dummy().hardbreak
Dummy().heading_close
Dummy().heading_open
Dummy().hr
Dummy().html_block
Dummy().html_inline
Dummy().link_close
Dummy().link_open
Dummy().list_item_close
Dummy().list_item_open
Dummy().math_block
Dummy().math_inline
Dummy().ordered_list_close
Dummy().ordered_list_open
Dummy().paragraph_close
Dummy().paragraph_open
Dummy().rn_color
Dummy().s_close
Dummy().s_open
Dummy().softbreak
Dummy().strong_close
Dummy().strong_open
Dummy().th_close
Dummy().tr_close
4 changes: 2 additions & 2 deletions rednotebook/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
and add them to the 'Tags' section on the left panel.

This pattern DOES NOT control the styling of hashtags in the text.
To control this behaviour refer to rednotebook/files/t2t.lang
To control this behaviour refer to rednotebook/files/markdown.lang
(regexes) and rednotebook/files/rednotebook-highlight-style.xml (styles).

If you make changes to this pattern, is very likely you will have to
make changes to /rednotebook/files/t2t.lang
make changes to /rednotebook/files/markdown.lang
"""
HASHTAG = re.compile(HASHTAG_PATTERN, flags=re.IGNORECASE)

Expand Down
Loading
Loading