gitbook icon indicating copy to clipboard operation
gitbook copied to clipboard

Support for Kramdown?

Open philschatz opened this issue 12 years ago • 3 comments

I noticed GitBook uses marked for generating the HTML files. Any thoughts for supporting kramdown (maybe via a commandline call?)

Our textbooks have various "features" that require custom styling; headings are not enough.

For examples, you can check out philschatz/*-book.

The full list of books can be browsed at http://philschatz.com/books/

philschatz avatar Jul 20 '14 23:07 philschatz

yes, gh-pages has been upgraded to kramdown (source).

and kramdown has lots of features including:

  • {:toc} for table of content (source here), sometime I want to display a TOC on current long page and this TOC is not part of left navigation sidebar.
  • [^cite] for references citing
  • Latex by default
  • ...

So is there any future plan to use kramdown for gitbook build?

hi @philschatz: I read your books, and I found that your books are little different from original gitbooks. and there is only gh-pages branch in your repositories. So would you please tell me which tool you are using? gitbook or something else that generates .md book using kramdown?

thanks.

scozv avatar Jul 27 '14 16:07 scozv

The book .md files are automatically generated from the CNXML (custom XML format) at http://cnx.org using the kramdown commandline tool (and some XSLT).

The main (only) branch for the books is gh-pages so GitHub automatically converts the .md files to .html (no need to run gitbook build && git push).

I have a blog post describing the process of converting the books at http://philschatz.com if you are interested.

Hope that helps!

philschatz avatar Jul 27 '14 20:07 philschatz

:+1:

orelby avatar Aug 03 '14 10:08 orelby