From 4af22a241d4dc71db01ef9fd585eed8900b42e83 Mon Sep 17 00:00:00 2001 From: "i.j" Date: Mon, 10 Jul 2023 18:16:53 +0000 Subject: [PATCH] Feature/format toot text --- CHANGELOG | 7 + README.md | 29 +++-- src/index.html | 5 - src/mastodon-timeline.css | 22 +++- src/mastodon-timeline.js | 234 ++++++++++++++++++---------------- src/mastodon-timeline.min.css | 2 +- src/mastodon-timeline.min.js | 2 +- 7 files changed, 169 insertions(+), 132 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index c97608c..ce78fcb 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,10 @@ +v3.7.0 - 10/07/2023 +- Add Markdown to HTML feature +- Add option to change Markdown symbol ">" into a blockquote HTML tag +- Add button to show spoiler or sensitive images +- Improve performance +- Refactoring using template strings + v3.5.1 - 08/05/2023 - Add feature, hide unlisted toots - Add message if no toots are shown due to filters applied diff --git a/README.md b/README.md index 192b688..538e3dc 100644 --- a/README.md +++ b/README.md @@ -65,26 +65,29 @@ If you prefer to show a timeline with a specific hashtag then change the `timeli Also you have some parameters to customize your embed timeline: ```javascript -// Preferred color theme 'light' or 'dark' (default: auto) -default_theme: "auto"; +// Preferred color theme: 'light', 'dark' or 'auto'. Default: auto +default_theme: "auto", -// Maximum amount of toots to get (default: 20) -toots_limit: "20"; +// Maximum amount of toots to get. Default: 20 +toots_limit: "20", -// Hide unlisted toots (default: don't hide) -hide_unlisted: false; +// Hide unlisted toots. Default: don't hide +hide_unlisted: false, -// Hide boosted toots (default: don't hide) -hide_reblog: false; +// Hide boosted toots. Default: don't hide +hide_reblog: false, -// Hide replies toots (default: don't hide) -hide_replies: false; +// Hide replies toots. Default: don't hide +hide_replies: false, -// Limit the text content to a maximum number of lines (default: unlimited) -text_max_lines: "0"; +// Converts Markdown symbol ">" at the beginning of a paragraph into a blockquote HTML tag (default: don't apply) +markdown_blockquote: true, + +// Limit the text content to a maximum number of lines. Default: 0 (unlimited) +text_max_lines: "0", // Customize the text of the link pointing to the Mastodon page (appears after the last toot) -btn_see_more: "See more posts at Mastodon"; +link_see_more: "See more posts at Mastodon", ``` ### Tip diff --git a/src/index.html b/src/index.html index daabac1..74718a9 100644 --- a/src/index.html +++ b/src/index.html @@ -9,11 +9,6 @@