@@ -74,8 +74,9 @@ impl<'a, 'b, R: BufRead> Converter<'a, 'b, R> {
74
74
fn process_document_title ( & mut self ) -> anyhow:: Result < ( ) > {
75
75
if let Some ( Ok ( line) ) = self . iter . next ( ) {
76
76
if let Some ( ( level, title) ) = get_title ( & line) {
77
+ let title = process_inline_macros ( title) ?;
77
78
if level == 1 {
78
- self . write_title ( level, title) ;
79
+ self . write_title ( level, & title) ;
79
80
return Ok ( ( ) ) ;
80
81
}
81
82
}
@@ -90,6 +91,7 @@ impl<'a, 'b, R: BufRead> Converter<'a, 'b, R> {
90
91
91
92
if get_list_item ( & line) . is_some ( ) {
92
93
let line = self . iter . next ( ) . unwrap ( ) ?;
94
+ let line = process_inline_macros ( & line) ?;
93
95
let ( marker, item) = get_list_item ( & line) . unwrap ( ) ;
94
96
nesting. set_current ( marker) ;
95
97
self . write_list_item ( item, & nesting) ;
@@ -258,6 +260,7 @@ impl<'a, 'b, R: BufRead> Converter<'a, 'b, R> {
258
260
self . write_indent ( level) ;
259
261
let line = self . iter . next ( ) . unwrap ( ) ?;
260
262
let line = line. trim_start ( ) ;
263
+ let line = process_inline_macros ( & line) ?;
261
264
if line. ends_with ( '+' ) {
262
265
let line = & line[ ..( line. len ( ) - 1 ) ] ;
263
266
self . output . push_str ( line) ;
@@ -585,7 +588,7 @@ Release: release:2022-01-01[]
585
588
586
589
== New Features
587
590
588
- * pr:1111[] foo bar baz
591
+ * **BREAKING** pr:1111[] shortcut kbd:[ctrl+r]
589
592
- hyphen-prefixed list item
590
593
* nested list item
591
594
** `foo` -> `foofoo`
@@ -645,9 +648,11 @@ paragraph
645
648
== Another Section
646
649
647
650
* foo bar baz
648
- * foo bar baz
651
+ * list item with an inline image
652
+ image:https://example.com/animation.gif[]
649
653
650
654
The highlight of the month is probably pr:1111[].
655
+ See https://example.com/manual[online manual] for more information.
651
656
652
657
[source,bash]
653
658
----
@@ -668,12 +673,12 @@ This is a plain listing.
668
673
669
674
Hello!
670
675
671
- Commit: commit:0123456789abcdef0123456789abcdef01234567[] \\
672
- Release: release: 2022-01-01[]
676
+ Commit: [`0123456`](https://github.com/rust-analyzer/rust-analyzer/commit/0123456789abcdef0123456789abcdef01234567) \\
677
+ Release: [` 2022-01-01`](https://github.com/rust-analyzer/rust-analyzer/releases/2022-01-01)
673
678
674
679
## New Features
675
680
676
- - pr:1111[] foo bar baz
681
+ - **BREAKING** [`#1111`](https://github.com/rust-analyzer/rust-analyzer/pull/1111) shortcut <kbd>ctrl</kbd>+<kbd>r</kbd>
677
682
- hyphen-prefixed list item
678
683
- nested list item
679
684
- `foo` -> `foofoo`
@@ -728,9 +733,11 @@ Release: release:2022-01-01[]
728
733
## Another Section
729
734
730
735
- foo bar baz
731
- - foo bar baz
736
+ - list item with an inline image
737
+ 
732
738
733
- The highlight of the month is probably pr:1111[].
739
+ The highlight of the month is probably [`#1111`](https://github.com/rust-analyzer/rust-analyzer/pull/1111).
740
+ See [online manual](https://example.com/manual) for more information.
734
741
735
742
```bash
736
743
rustup update nightly
0 commit comments