rust-analyzer / rust-analyzer.github.io

https://rust-analyzer.github.io/
87 stars 51 forks source link

Set the `experimental` document attribute to enable the keyboard macro #191

Closed noritada closed 1 year ago

noritada commented 1 year ago

I found that HTML outputs of some changelog posts such as Changelog #11 contains raw keyboard macro expressions such as kbd:[Enter]. This PR sets the experimental document attribute on those posts to make the macro processed.

I think it would be nice if the changelog draft has that attribute by default, so I will post a separate PR to change the draft generated by xtask release.

lnicola commented 1 year ago

Ref. https://docs.asciidoctor.org/asciidoc/latest/macros/keyboard-macro/

I thought this might not be needed in a more recent version of AsciiDoc, but that doesn't seem to be the case.

Thanks!

lnicola commented 1 year ago

Confirmed to work:

image