04-29-2018, 03:00 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2018
Device: kindle
|
How to convert a txt(markdown format) to epub with pictures?
I had found a similar thread, `https://www.mobileread.com/forums/showthread.php?t=45023`, but its link is unavailable, so are there any new tutorials or demos?
example txt file: ```md ##Division 1 ###Chapter 1 Paragraph 1 Paragraph 2 Paragraph 3 ![test_image](http://abc.com/def.jpg) ``` |
04-30-2018, 12:22 AM | #3 |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2018
Device: kindle
|
I have used the standard markdown syntax you give, `![test_image](http://abc.com/def.jpg)`, this is a image use markdown syntax.
I also download the image to the same directory, and change it to `![test_image](def.jpg)`, but it stll can't work. |
04-30-2018, 01:36 AM | #4 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You cant use URLs calibre conversion only works on locally available files. I dont know if the markdown input plugin supports relative paths to images, but it should work with absolute paths.
|
04-30-2018, 02:24 AM | #5 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
ANd this adds support for relative images when converting via ebook-convert
https://github.com/kovidgoyal/calibr...457e8f4b2975d0 |
Advert | |
|
04-30-2018, 07:27 AM | #6 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2018
Device: kindle
|
Quote:
What I want is like this demo. https://github.com/kovidgoyal/calibr.../lrf/html/demo So are there any methods to embed pictures to epub? |
|
04-30-2018, 08:48 AM | #7 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yes, it does.
|
04-30-2018, 10:02 AM | #8 |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2018
Device: kindle
|
|
Tags |
conversion, picture, question, txt to epub |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Losing paragraph format in txt to epub with block and markdown | Tattvadarzin | Conversion | 4 | 10-25-2013 02:49 AM |
Convert from epub/mobi back to TXT or any format? | KDA1 | Calibre | 1 | 01-26-2012 04:19 PM |
->Txt+Markdown | Perkin | Calibre | 2 | 12-11-2010 04:04 AM |
Convert .TXT to .EPUB | Arfer | Calibre | 6 | 09-02-2010 10:41 AM |
Adding pictures to epub from a txt file | p3aul | Calibre | 3 | 04-16-2009 06:05 PM |