Hi all,
I followed the thread reagarding markdown support and gave it a try on my own.

Please check out

        https://server.ac-drexler.de/fossil/fossil/doc/tip/addons/markdown.md

for an integration proposal of the discount library with the build system of 
fossil.

------------------------------------------------------------------------------------
## Markdown support for fossil

after looking for additional markup support for fossil I found [this thread][1].
With the references and some afternoon work I managed to integrate
Markdown as an additional mime-type .md that the doc interface handles in a
similar way to .wiki&  .txt.

No full wiki integration into fossils wiki system  is planned because I
understand and agree with the [point of Richard Hipp][5] that the repositories
themselves should be portable and not break backward compatibility. But the
rendering of .md files from within a repo should be fine.

If configured ('configure --with-md' is  supported) .md files are run
through the [discount version of tin-pot][3]. In addition the page title
is set according to the supported pandoc header format (three lines starting
with '%' at the beginning of the .md document: title, author, date. All three
must be present for the detection to work).

Please feel free to look at the
[doc-markdown-support](/timeline?r=doc-markdown-support) branch in [this
repository](https://server.ac-drexler.de/fossil/fossil/).


### Installation

Here are the installation instructions for Linux. Windows is not yet tested.

  1.  git clone git://github.com/tin-pot/discount.git
  2.  cd discount; ./configure.sh; make; sudo make install
  3.  cd  ..
  4.  fossil clone http://server.ac-drexler.de/fossil/fossil fossil.fossil
  5.  mkdir fossil-md
  6.  cd fossil-md
  7.  fossil open ../fossil.fossil doc-markdown-support
  8.  ./configure --with-md
  9.  make



[1]: http://www.mail-archive.com/fossil-users@lists.fossil-scm.org/msg07297.html 
"Mail Thread"
[2]: http://www.pell.portland.or.us/~orc/Code/discount "Original Discount"
[3]: https://github.com/tin-pot/discount "Discount with Win support"
[4]: http://dl.dropbox.com/u/13455033/wikiformat.c "first wikiformat.c patch by 
tin-pot"
[5]: http://www.mail-archive.com/fossil-users@lists.fossil-scm.org/msg01915.html 
"Thread from R. Hipp regarding another markup"

------------------------------------------------------------------------------------


_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to