开发者

Which Wiki text syntax or Markdown to use? [closed]

开发者 https://www.devze.com 2023-02-03 09:14 出处:网络
Closed. This question is opinion-based. It is not currently accepting answers. 开发者_开发问答 Want to improve this question? Update the question so it can be answered with facts and citati
Closed. This question is opinion-based. It is not currently accepting answers. 开发者_开发问答

Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.

Closed 3 years ago.

Improve this question

Working on my personal knowledge base... I want to format my documents, even on local hard disk in wiki syntax. Sometimes I would upload them to a (corporate) wiki, sometimes I would download them from there. Planned are some tools to support this flow and searching my knowledge base (documents) for later. Obviously I want the markdown to be compatible with most, minimising conversion work.

So my question is similar to this related question, but

  • What wiki text version or Markdown (dialect) should I use when I start something new? (i.e. documentation project and kind of wiki).
  • What are the most wiedely used/recognized ones?
  • And where is tool support (editors and or libraries) best? Concerned prog. languages are Java, Ruby, Scala.


Wikipedia says that there is no commonly accepted standard wikitext language.

Creole is one effort for a "common wiki markup language to be used across different Wikis". There is a version 1.0 of the specification and several wikis and wiki engines implement it. MediaWiki does not implement it.

Markdown has a large number of implementations and seems to be used quite a lot.

As there is no agreed standard, the language might be selected depending on features and available implementations depending on the use case.


(1) While there are a lot of wiki markups I suggest to stick to well defined markup language.

There are only 3 plain text markup with well defined specs:

  • CommonMark attempt to define strong syntax and standardize common extensions of popular MarkDown. All love it. Very HTML oriented.
  • reStructuredText is consistent framework for markup and well established project (started from 2001!!). If you need extensibility built into core specs, inline foreign markups, generate HTML/PDF/docbook/etc it is your choice. Several books and many software project was documented via reStructuredText. Check https://readthedocs.org/ With Sphinx publishing software you ever can build HTML with off-line JS search!!
  • AsciiDoc is competitive to reStructuredText but lack of build-in extensibility. It is very DocBook oriented. Several books was written in AsciiDoc.

Textile markup didn't gain well defined specs and has weak community around. I recommend consider above 3 options instead.

(2) You definitely should stick to plain text files.

Support software for all above formats able to produce high quality output for printing and on-line publishing.

I stick to RST because I need extendibility and ability to inline foreign markup (math with LaTeX, graph with graphviz/dot, plotting with imagemagic, etc)

I search over personal tips inside Emacs editor or inside bash/grep. For advertising purpose I publish my tips online, for example: http://tips.defun.work/


Unfortunately there is very little format standardization in the wiki world, although some wikis (notably Atlassian's Confluence, a commercial product) are moving towards XHTML.

The most widely used Wiki software is MediaWiki (of Wikipedia fame). Mediawiki's markup is famously hard to parse, but it has been around and used widely enough that there are lots of existing tools for converting both to and from MediaWiki format, as well as editing content with lots of different online and offline editors.

MediaWiki also has a full-featured API with lots of client libraries in various programming languages (see Client code), including eg. MediaWiki::Gateway for Ruby.

0

精彩评论

暂无评论...
验证码 换一张
取 消