Answers.Body: <p>I found two things.</p>
  
  <p>For me the link has to be written '( ./6.md )' with a space before and after the file specification.</p>
  
  <p>Then I found the ebook-convert app wants html files for inputs.
  It complains that the inputs are "binary"</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-18T13:43:13.033Z
Answers.Text: Thanks, it seems that calibre doesn't support md format very well.
Answers.UserDisplayName: camino
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-07T13:17:04.883Z
Answers.Text: "It complains that the inputs are "binary"." This is probably caused by extended ascii characters in the source file which should be only 7 bit text. Find the high ascii characters and remove or replace them with low ascii characters. Or set the text source file as utf-8. How to do that depends on the editor you are using.
Answers.UserDisplayName: Bulrush
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-18T02:08:39.313Z
Answers.LastActivityDate: 2019-08-18T02:08:39.313Z
Answers.UserDisplayName: user1700898
Answers.Body: <p>I just use <a href="http://pandoc.org" rel="nofollow noreferrer">Pandoc</a> and specify all .md files on the command line. Here is an incomplete command line: <code>pandoc [some options] 1.md 2.md 3.md</code>.</p>
  
  <p>Source files go last, after all other options, on the command line.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-07T13:16:25.210Z
Answers.LastActivityDate: 2019-09-09T16:48:34.010Z
Answers.LastEditDate: 2019-09-09T16:48:34.010Z
Answers.UserDisplayName: Bulrush
Body: <p>main.md contain sub-mds:</p>
  
  <p>main.md</p>
  
  <pre><code>1. [1 - ](1.md)
  1. [2 - ](2.md)
  1. [3 - ](3.md)
  1. [4 - ](4.md)
  1. [5 - ](5.md)
  1. [6 - ](6.md)
  </code></pre>
  
  <p>I use calibre command:</p>
  
  <pre><code>ebook-convert main.md main.epub
  </code></pre>
  
  <p>But only the content of main.md is wrote to epub.</p>
  
Tags: <epub><calibre><markdown>
Title: how to convert markdown with sub-markdowns to ebook
UserDisplayName: camino
ThreadText: # how to convert markdown with sub-markdowns to ebook
  
  (Asked by: username_0 on 2019-05-05)
  
  main.md contain sub-mds:
  main.md
  1. [1 - ](1.md)
  1. [2 - ](2.md)
  1. [3 - ](3.md)
  1. [4 - ](4.md)
  1. [5 - ](5.md)
  1. [6 - ](6.md)
  
  I use calibre command:
  ebook-convert main.md main.epub
  
  But only the content of main.md is wrote to epub.
  
  **Tags:** epub, calibre, markdown
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2019-08-18. Score: 2 | Accepted answer
  
  I found two things.
  
  For me the link has to be written '( ./6.md )' with a space before and after the file specification.
  
  Then I found the ebook-convert app wants html files for inputs.
  It complains that the inputs are "binary"
  
  > **Comments:**
  > **username_0**: Thanks, it seems that calibre doesn't support md format very well.  
  > **username_2**: "It complains that the inputs are "binary"." This is probably caused by extended ascii characters in the source file which should be only 7 bit text. Find the high ascii characters and remove or replace them with low ascii characters. Or set the text source file as utf-8. How to do that depends on the editor you are using.  
  
  ---
  
  ### Answer by username_2 on 2019-09-07. Score: 2
  
  I just use [Pandoc](http://pandoc.org) and specify all .md files on the command line. Here is an incomplete command line: `pandoc [some options] 1.md 2.md 3.md`.
  
  Source files go last, after all other options, on the command line.
  
  
  ---
  
  