cherry-markdown icon indicating copy to clipboard operation
cherry-markdown copied to clipboard

[Feature Request] 希望增加 选项卡

Open kylincodelab opened this issue 11 months ago • 3 comments

Prerequisites

  • [X] There isn't an existing issue that requests the same feature, to avoid duplicates.

Clear and concise description of the problem

类似这种页面,有步骤, 不同步骤放不同内容 https://www.hello-algo.com/chapter_stack_and_queue/queue/#__tabbed_2_2

Suggested solution

No response

Further Information

No response

Contributing

None

kylincodelab avatar Dec 30 '24 03:12 kylincodelab

收到,这里难点主要在左侧编辑选项卡内容时,右侧预览区如何回显对应的内容。不过确实是一个非常好的建议,感谢反馈哈~

sunsonliu avatar Jan 02 '25 02:01 sunsonliu

image 另外在实现这个功能之前,如果非常着急使用的话,可以先用这个“手风琴”的功能来顶替一下哈

sunsonliu avatar Jan 02 '25 02:01 sunsonliu

image 另外在实现这个功能之前,如果非常着急使用的话,可以先用这个“手风琴”的功能来顶替一下哈

好的,里面有一些小细节 1、选某个语言时,其他选项卡可能也得跟着变化,可以考虑分成独立选项卡、关联式选项卡 2、是否应该可以通过模版设置一些全局变量,比如 id信息?

kylincodelab avatar Jan 16 '25 02:01 kylincodelab

https://tencent.github.io/cherry-markdown/examples/custom_codeblock_wrapper.html 新版本已实现了自定义代码块容器的能力,效果可参考上面的demo,可以帮忙实现需求~

sunsonliu avatar Oct 21 '25 06:10 sunsonliu