Is it possible to perform “tabs” in Multimarkdown?

北城余情 提交于 2020-08-07 01:30:12

问题


Is there a way to realize tabs in Multimarkdown syntax?

My Goal is something like:

  • Item:-----------tab------->Value
  • An other item:---tab--->Value
  • And one item more:--->Value

I could realize that by a table, but this would be an overhead. I'd love it to stay a list.


回答1:


You can type "tab" characters wherever you like. But there is no concept of alignment outside of a table since there is no way to know whether the resulting output will be displayed in a monospace or variable-width font. And since Markdown/MultiMarkdown eat unnecessary whitespace, the extra spaces would be stripped from the resulting output.

A list is designed to display sequential data. A table is designed to show tabular data. It seems that you want to show tabular data, but are trying to force it into a format that wasn't designed for that purpose.

So the concise answer to your question is "No".




回答2:


but are trying to force it into a format that wasn't designed for that purpose.

If you go back to typewriters the purpose of tabstops original where tables ;)

It is really a pity that elastic tabstops and .tsv text files (instead .csv with comma or semicolon as separator depending on region) are not common today. The easiest way to write a table is simply hitting tab. It is also the easiest way to read tabular data in columns. Only for the programmers of the first text editing programs it was easier to show every tab character simply as 4 spaces. The Elastic Tabstops feature shows consecutive lines of text with tab characters in table columns.

In a perfect world we had plain text tables everywhere easy to write and read thanks to Elastic Tabstops. Unfortunately it seems not easy to implement in existing text engines.



来源:https://stackoverflow.com/questions/9384746/is-it-possible-to-perform-tabs-in-multimarkdown

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!