Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Source code block support with callouts #206

Open
BOFA1ex opened this issue Sep 23, 2022 · 2 comments
Open

[Feature Request]: Source code block support with callouts #206

BOFA1ex opened this issue Sep 23, 2022 · 2 comments

Comments

@BOFA1ex
Copy link

BOFA1ex commented Sep 23, 2022

Question 是否能支持类似功能, e.g. AsciiDoc source code block with callouts.

Usage

[source,ruby]
----
require 'sinatra' // <1>

get '/hi' do // <2>
  "Hello World!" // <3>
end
----
<1> Library import
<2> URL mapping
<3> HTTP response body

Preview
image

@purocean
Copy link
Owner

这是什么软件呀,看着好高级

@BOFA1ex
Copy link
Author

BOFA1ex commented Sep 23, 2022

.. 我看yn导出已经支持AsciiDoc了哇

相关语法说明: https://docs.asciidoctor.org/asciidoc/latest/syntax-quick-reference/#literals-and-source-code Example.54

像是用代码块写Example补充了太多注释, 用这种方式引注, 整体文档可读性在我个人角度来看是比较高的..
image

@BOFA1ex BOFA1ex changed the title [Feature Request]: source code block support with callouts [Feature Request]: Source code block support with callouts Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants