yn icon indicating copy to clipboard operation
yn copied to clipboard

[Feature Request]: Source code block support with callouts

Open BOFA1ex opened this issue 3 years ago • 2 comments

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

BOFA1ex avatar Sep 23 '22 09:09 BOFA1ex

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

purocean avatar Sep 23 '22 09:09 purocean

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

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

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

BOFA1ex avatar Sep 23 '22 09:09 BOFA1ex