我想编写一个文档,以通过' Limes&#x27查看。命令。在哪里可以找到格式标准规格?
我想转换MARKDOWN文件,以便可以通过 少 ...
但是,我希望保留并相应地保留格式(粗体,斜体等)...不幸的是我找不到规格。
我首选的方法是使用 pandoc 将md-files转换为该文件类型少可以正确显示...
I would like to convert Markdown files so these can be viewed via less...
However, I want the formatting (bold, italic, etc.) to be preserved and displayed accordingly... Unfortunately I cannot find the specifications.
My preferred approach would have been to use Pandoc to convert the md-files into a file type that less can properly display...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
pandoc支持的任何格式的文件都可以像Unix Man页面一样读取:
默认情况下使用
少
,除非您将pager
变量设置为其他值。使用它的一种好方法是创建一个外壳功能:
现在您可以使用Markdown,Docx,Latex等读取文件,就好像它们是手页一样。
如您所见,该命令使Pandoc将其输入转换为称为
Man
的格式,这确实是Groff Man(请参阅 https://man.cx/groff_man(7))。Files of any format supported by pandoc can be read like Unix man pages:
This uses
less
by default, unless you have thePAGER
variable set to some other value.A good way to use it is to create a shell function:
Now you can read files using Markdown, docx, LaTeX, etc. as if they were manpages.
As you can see, the command causes pandoc to convert its input to a format called
man
, which is really groff man (see https://man.cx/groff_man(7)).