facebook / facebook/docusaurus

Support source code callouts in CodeBlock (numbers/steps/annotations)

Đang mở
#10,108 15 bình luận 2 reaction 0 người được giao Xem trên GitHub
feature
Ngôn ngữ chính
TypeScript
Star
66.2k
Fork
10k
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
52

Mô tả

### Have you read the Contributing Guidelines on issues?

- [X] I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#issues).

### Description

Example: https://docs.asciidoctor.org/asciidoc/latest/syntax-quick-reference/#literals-and-source-code

![image](https://github.com/facebook/docusaurus/assets/10142624/0b733df3-4a18-4fb2-a21d-2f8a797e3d58)

![image](https://github.com/facebook/docusaurus/assets/10142624/9f5c0d5c-4bcc-4009-9f6f-0c06fb0e734e)

### Has this been requested on Canny?

_No response_

### Motivation

This feature is very useful for explaining the complex parts of the source code in the document

### API design

_No response_

### Have you tried building it?

_No response_

### Self-service

- [ ] I'd be willing to contribute this feature to Docusaurus myself.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.