mirror of
https://github.com/aome510/hackernews-TUI.git
synced 2026-04-26 09:25:56 +03:00
[PR #58] [MERGED] Add font highlighting for ArticleView #75
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hackernews-TUI#75
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/aome510/hackernews-TUI/pull/58
Author: @aome510
Created: 12/22/2021
Status: ✅ Merged
Merged: 12/23/2021
Merged by: @aome510
Base:
main← Head:add-article-view-font-highlight📝 Commits (10+)
06e2c86update dependenciesa86cd75move the article parser logic toclientmodule431f494removetoggle_markdown_modeshortcut0495c02fix lifetime compile error inget_articlec008661usearticle_view::get_article_viewto construct the view52431e0implement a first-iteration ofArticle::parsefunctione29a0d4handle italic/boldc48c96eimplement content parser for a HTML article5f912fdrender an aticle view with title an padding31d47b9handle relative links in article, label links in articles starting with1📊 Changes
11 files changed (+621 additions, -344 deletions)
View changed files
📝
Cargo.lock(+273 -21)📝
examples/hn-tui.toml(+3 -17)📝
hackernews_tui/Cargo.toml(+6 -4)📝
hackernews_tui/src/client/mod.rs(+28 -1)📝
hackernews_tui/src/client/parser.rs(+270 -88)📝
hackernews_tui/src/config/keybindings.rs(+0 -4)📝
hackernews_tui/src/config/mod.rs(+1 -1)📝
hackernews_tui/src/config/theme.rs(+6 -2)📝
hackernews_tui/src/view/article_view.rs(+30 -166)📝
hackernews_tui/src/view/async_view.rs(+4 -36)📝
hackernews_tui/src/view/help_view.rs(+0 -4)📄 Description
Brief description of changes
ArticleViewArticleViewto start with 1Articlestruct fromviewmodule toclientmodulehtmlescapewithhtml-escapehtml5everandmarkup5ever_rcdomfor parsing HTML documentheader,boldcomponent stylesBreaking changes
article_parse_commandto be in HTML formatarticle_parse_commandtomercury-parserwithout additional argumentstoggle_raw_markdown_modecommand🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.