我可以在我的Markdown页面中添加一个选项卡式窗口小部件吗? [英] Can I add a tabbed widget to my Markdown page?

查看:914
本文介绍了我可以在我的Markdown页面中添加一个选项卡式窗口小部件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想添加一个选项卡式窗口小部件,以在相似内容的不同视图之间切换.类似于 Xamarin的文档让用户在Windows的Visual Studio和Mac的Visual Studio之间切换:

I would like to add a tabbed widget to toggle between different views of similar content. Something like the way Xamarin's documentation lets users toggle between Visual Studio for Windows and Visual Studio for Mac:

这可能吗?

推荐答案

Markdown不支持此类功能.毕竟,它是专为散文写作:

Markdown doesn't support anything like that. After all, it was designed for writing prose:

Markdown的想法是使其易于阅读,编写和编辑散文. HTML是一种发布格式; Markdown是一种 writing 格式.因此,Markdown的格式语法仅解决了可以以纯文本形式传达的问题.

The idea for Markdown is to make it easy to read, write, and edit prose. HTML is a publishing format; Markdown is a writing format. Thus, Markdown’s formatting syntax only addresses issues that can be conveyed in plain text.

GitHub Flavored Markdown 添加了对某些功能的支持未包含在原始的Markdown规范中(例如,表,删除线,带有语法突出显示的受围代码块),但没有选项卡式界面那样.

GitHub Flavored Markdown adds support for some features not included in the original Markdown specification (e.g. tables, strikethrough, fenced code blocks with syntax highlighting) but nothing like a tabbed interface.

我不知道有任何Markdown实现提供类似这样的功能.

I'm not aware of any Markdown implementations that offer something like this.

使用纯Markdown的最佳选择是仅包含标头,以分隔特定于操作系统的指令,例如

The best alternative using pure Markdown would be to simply include headers to separate your OS-specific instructions, e.g.

# Step 1

## Windows

...

## macOS

...

这篇关于我可以在我的Markdown页面中添加一个选项卡式窗口小部件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆