* Issues with converting from Markdown to Markdown
@ 2018-09-14 17:04 Nikhil Agarwal
[not found] ` <79f46239-0530-471c-ab13-a9a1d392f82c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Nikhil Agarwal @ 2018-09-14 17:04 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1561 bytes --]
Version: **pandoc 2.2.1**
## Description
- In the following example, I am
- converting from Markdown to Markdown
- to convert inline links to references.
```bash
$ cat Simple.md
- Some text
<center>![Hi](Image/Image_18-09-14_18-28-22.png){width=500px}</center>
- Some
$ pandoc --reference-links --wrap=preserve Simple.md -o temp.md
$ cat temp.md
- Some text
<center>
![Hi]
</center>
- Some
[Hi]: Image/Image_18-09-14_18-28-22.png {width="500px"}
```
## How can
- Pandoc Preserve newlines as in the original Markdown?
- Avoid generation of extra newlines by Pandoc in the output Markdown file?
- Pandoc avoid adding 2 blank spaces before the Reference Links definition?
Is it necessary?
**NOTE**: Pandoc can't render Image any more, when converted to `html`
## Expected results
With rendering of Image, when converted to `html`.
```bash
$ cat temp.md
- Some text
<center>![Hi]</center>
- Some
[Hi]: Image/Image_18-09-14_18-28-22.png {width="500px"}
```
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/79f46239-0530-471c-ab13-a9a1d392f82c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 2616 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-09-14 17:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-14 17:04 Issues with converting from Markdown to Markdown Nikhil Agarwal
[not found] ` <79f46239-0530-471c-ab13-a9a1d392f82c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-09-14 17:28 ` John MacFarlane
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).