Looking for a word processor with the power of Markdown Basically, I am looking for a word editor (like Word or Pages) that is compatible with Markdown. I want to be able to write in Markdown but with the concept of pages. Their are a lot of Markdown editor but none that handles the concept of pages (I know that Markdown is primary for the web, so I understand why), but I will use Markdown for document that I will need to print, so I need to know, in advance, the number of pages.

Here is what I need:


compatible with Markdown
header : same for every page
footer : same for every page
number of pages and page numbers
automatically numbering headings (you can do it with CSS)
editable stylesheet
live preview
easy to use


Mou can do must of this (items 1, 5, 6, 7, 8). The problems are for header, footer and number of pages and page numbers

Do you know a software that can do what I need ?
Texts is a strange hybrid between a text editor and what you are looking for.




Markdown visual editor



  Write using Markdown - without having to remember the markup. With
  Texts you can apply styles to words or paragraphs and immediately see
  the results. Your images and tables are displayed directly within
  Texts.



Well-structured content



  Use Texts to create structured documents. You set your titles and
  headings, and they will stay in place if you export your document to
  another format.



Blogging on GitHub Pages



  Content written in Texts can be easily published as a blog on GitHub
  Pages, with math, tables, footnotes etc.



Perfect for academics



  Developed to cover all your needs: formulas and footnotes,
  bibliography and citations, tables and links.



Single source publishing



  Writing your documents in Texts gives you a lot of flexibility. You
  can easily convert your words into clean HTML5, professional PDFs,
  ePub or Word format, or even a presentation.



Professional typesetting



  Texts produces immaculate PDFs. Everything you create — from
  paragraphs of text to mathematical formulae — is perfectly typeset.
  See some sample documents.



Cross-platform application



  Mac OS X or Windows? Doesn't matter, use Texts on both. The app has
  native look and feel on each platform, and the document format is
  common across platforms.



Custom themes



  Change the appearance of your text editor with themes.



Export templates



  Adjust style of any published documents with export templates.


http://www.texts.io/