Commit graph

64 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
918e45824a
Stop parsing Url in markdown
CommonMark accepts any URI.

Co-authored-by: nico2sh <mail@nico2sh.com>
2025-11-21 04:45:11 +01:00
Günther Jena
a9c1b81b58
Remove Url::scheme check in markdown::parse_with 2025-11-21 04:44:42 +01:00
Héctor Ramón Jiménez
8f87a2bc2e
Make rule API consistent with space 2025-09-19 18:09:59 +02:00
Héctor Ramón Jiménez
c684fbd6af
Rename horizontal_rule to rule and introduce Rule::vertical 2025-09-11 06:51:53 +02:00
Héctor Ramón Jiménez
148fc77b8f
Fix background of inline_code_highlight in markdown 2025-08-04 00:45:00 +02:00
Héctor Ramón Jiménez
6b937fb6e1
Use smart horizontal scrollable in markdown::table 2025-08-03 03:02:45 +02:00
Héctor Ramón Jiménez
c710591cc8
Fix alignment of number in markdown ordered lists 2025-07-24 20:53:57 +02:00
Héctor Ramón Jiménez
dcea10f707
Add table support to markdown widget 2025-07-17 03:48:45 +02:00
Héctor Ramón Jiménez
946e2a73b7
Implement Rule support in markdown widget 2025-06-27 18:49:51 +02:00
Héctor Ramón Jiménez
0ff616814d
Fix typo in docs of markdown::Viewer::quote 2025-06-27 16:51:00 +02:00
Héctor Ramón Jiménez
ca1bf717b3
Implement Quote support in markdown widget 2025-06-27 16:47:54 +02:00
Héctor Ramón Jiménez
5ca5000cdc
Add elided lifetimes to view helpers in examples 2025-06-24 14:29:36 +02:00
Héctor Ramón Jiménez
9a7ea88d55
Fix clippy lints for Rust 1.87 2025-05-15 20:52:27 +02:00
Héctor Ramón Jiménez
363b0e903a
Fix markdown code blocks when highlighter is disabled 2025-03-18 00:04:08 +01:00
Héctor Ramón Jiménez
9ceb467e6e
Run cargo fmt 2025-02-21 01:37:13 +01:00
Héctor Ramón Jiménez
42f6018487
Remove lifetime bound for Text in markdown::paragraph 2025-02-19 07:03:08 +01:00
Héctor Ramón Jiménez
e594346544
Fix markdown compilation when highlighter feature is disabled 2025-02-18 04:42:14 +01:00
Héctor Ramón Jiménez
ef25dfb733
Use code_size instead of spacing for code_block metrics 2025-02-05 02:01:41 +01:00
Héctor Ramón Jiménez
c7711e59ab
Add language to Item::CodeBlock in markdown 2025-02-05 01:33:16 +01:00
Héctor Ramón Jiménez
f8c71a20a9
Rename on_link_clicked to on_link_click 2025-02-04 21:22:01 +01:00
Héctor Ramón Jiménez
e8020f3eaf
Add Copy action to code blocks in markdown example 2025-02-04 20:58:06 +01:00
Héctor Ramón Jiménez
387abafa3a
Add alt and title to markdown images 2025-02-04 20:19:25 +01:00
Héctor Ramón Jiménez
a6e64eac6f
Animate image fade in in markdown example 2025-02-04 19:57:51 +01:00
Héctor Ramón Jiménez
24cf355e96
Fix documentation of markdown and rich_text 2025-02-04 19:07:24 +01:00
Héctor Ramón Jiménez
5655998761
Draft Viewer trait for markdown 2025-02-04 07:53:56 +01:00
Héctor Ramón Jiménez
c02ae0c4a4
Introduce view_with customizers in markdown module 2025-02-04 03:41:05 +01:00
Héctor Ramón Jiménez
599d8b560b
Avoid sharing State when re-parsing markdown sections 2025-02-02 04:17:44 +01:00
Héctor Ramón Jiménez
569ef13ac9
Fix broken references when parsing markdown streams 2025-02-02 04:01:57 +01:00
Héctor Ramón Jiménez
952c47bc8a
Write documentation for markdown::Content 2025-02-01 04:33:15 +01:00
Héctor Ramón Jiménez
eb81679e60
Split code blocks into multiple rich_text lines
This improves layout diffing considerably!
2025-02-01 01:08:20 +01:00
Héctor Ramón Jiménez
447f5ae494
Discard markdown::Highlighter if language changes 2025-02-01 00:33:05 +01:00
Héctor Ramón Jiménez
095859ed57
Add new constructor for markdown::Content 2025-01-31 20:50:07 +01:00
Héctor Ramón Jiménez
bc2d662af7
Replace println with log calls in markdown module 2025-01-31 20:42:53 +01:00
Héctor Ramón Jiménez
4b8fc23840
Implement markdown incremental code highlighting 2025-01-31 20:37:07 +01:00
Héctor Ramón Jiménez
128058ea94
Draft incremental markdown parsing
Specially useful when dealing with long Markdown
streams, like LLMs.
2025-01-31 17:35:38 +01:00
Héctor Ramón Jiménez
aa0f0e73aa
Let markdown::view be Shrink when no code blocks exist 2025-01-30 01:47:10 +01:00
Héctor Ramón Jiménez
d49d4dc3fa
Make spacing configurable in markdown::Settings 2025-01-30 01:46:52 +01:00
Héctor Ramón Jiménez
cfbeb05e32
Fix code block merging with previous spans in markdown widget 2025-01-30 01:46:04 +01:00
Jinderamarak
440918ce53
fix: parsing of nested markdown lists without empty line 2025-01-15 10:59:20 +00:00
Héctor
bc215f6077
Merge pull request #2623 from boondocklabs/markdown-lifetime
Change lifetime of markdown IntoIterator Item, as it does not need to live as long as the returned Element
2024-10-02 18:08:11 +02:00
Matt Thompson
8d66b97888 Change lifetime of markdown view IntoIterator Item, as it does not need to live as long as the returned Element. 2024-10-01 19:30:10 -07:00
bbb651
7a86900a45 Fix various typos
Using https://github.com/crate-ci/typos
2024-09-29 16:37:35 +03:00
Héctor Ramón Jiménez
6d1ecb79e3
Replace Rc with Arc for markdown caching 2024-09-21 22:27:49 +02:00
Héctor Ramón
ddbb8445bf
Merge pull request #2587 from iced-rs/improve-api-reference
Add widget examples to API reference and update `README`
2024-09-19 06:59:05 +02:00
Héctor Ramón Jiménez
a2c16aa68e
Show markdown doc example in multiple places 2024-09-19 04:05:46 +02:00
Héctor Ramón Jiménez
71af846c6d
Remove redundant import in markdown widget 2024-09-18 21:51:12 +02:00
Héctor Ramón Jiménez
bb6fa42924
Fix ambiguous rich_text link in widget::markdown 2024-08-22 02:30:12 +02:00
Héctor Ramón Jiménez
4c883f12b4
Make RichText generic over data structure
... and decouple `markdown::parse` from theming
2024-08-22 02:24:06 +02:00
Héctor Ramón Jiménez
55764b923e
Decouple markdown widget from built-in Theme 2024-08-21 02:34:03 +02:00
Héctor Ramón Jiménez
ca8ebb16a6
Implement strikethrough support for rich_text spans 2024-07-28 17:45:11 +02:00