public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* separating citations in md
@ 2023-05-07 19:54 Mark Pinsley
       [not found] ` <8a80881f-a26a-48e4-be33-3492910aa752n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Pinsley @ 2023-05-07 19:54 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1437 bytes --]

I have attached three files

First.md
First.HTML
Updated.md

I wrote First.Md
it looks like this:

Test my reference
[Dermamed]
[yahoo]
[MultiMarkdown]
[MarkDown]

This is a [Link](www.usatoday) where the url is directly next to the word 
link in markdown

<!-- Citations -->
[Dermamed]:      https://www.dermamedsolutions.com
[yahoo]: https://www.yahoo.com
[MultiMarkdown]: https://fletcherpenney.net/multimarkdown/
[Markdown]:   https://daringfireball.net/projects/markdown/


What I am doing is keeping the URL citations at the bottom to keep the text 
clean looking. Sometimes I have some pretty long URLs

In Pandoc I used the command
'pandoc -s "First.md" -o First.html

The HTML comes out as expected
Then I used the Pandoc command
'pandoc -s First.html -o updated.md

When you look at the new updated.md file. You will see that all links are 
on the same line as the text (rather than at the bottom). I was looking for 
a command to create all these links at the bottom rather than inline. Is 
there a way to do that?

-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8a80881f-a26a-48e4-be33-3492910aa752n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 2062 bytes --]

[-- Attachment #2: First.html --]
[-- Type: text/html, Size: 4047 bytes --]

[-- Attachment #3: updated.md --]
[-- Type: text/markdown, Size: 417 bytes --]

---
generator: pandoc
title: Original MD
viewport: width=device-width, initial-scale=1.0, user-scalable=yes
---

Test my reference [Dermamed](https://www.dermamedsolutions.com)
[yahoo](https://www.yahoo.com)
[MultiMarkdown](https://fletcherpenney.net/multimarkdown/)
[MarkDown](https://daringfireball.net/projects/markdown/)

This is a [Link](www.usatoday) where the url is directly next to the
word link in markdown

[-- Attachment #4: First.md --]
[-- Type: text/markdown, Size: 397 bytes --]

Test my reference
[Dermamed]
[yahoo]
[MultiMarkdown]
[MarkDown]

This is a [Link](www.usatoday) where the url is directly next to the word link in markdown

<!-- Citations -->
[Dermamed]:      https://www.dermamedsolutions.com
[yahoo]: https://www.yahoo.com
[MultiMarkdown]: https://fletcherpenney.net/multimarkdown/
[Markdown]:   https://daringfireball.net/projects/markdown/



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: separating citations in md
       [not found] ` <8a80881f-a26a-48e4-be33-3492910aa752n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2023-05-08 12:25   ` Ian Cornelius
       [not found]     ` <3ba766cb-b261-4576-8e12-a43496a5bc8fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Cornelius @ 2023-05-08 12:25 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1724 bytes --]

Use the option --reference-links. See here:
https://pandoc.org/MANUAL.html#option--reference-links
On Sunday, May 7, 2023 at 2:54:47 PM UTC-5 Mark Pinsley wrote:

> I have attached three files
>
> First.md
> First.HTML
> Updated.md
>
> I wrote First.Md
> it looks like this:
>
> Test my reference
> [Dermamed]
> [yahoo]
> [MultiMarkdown]
> [MarkDown]
>
> This is a [Link](www.usatoday) where the url is directly next to the word 
> link in markdown
>
> <!-- Citations -->
> [Dermamed]:      https://www.dermamedsolutions.com
> [yahoo]: https://www.yahoo.com
> [MultiMarkdown]: https://fletcherpenney.net/multimarkdown/
> [Markdown]:   https://daringfireball.net/projects/markdown/
>
>
> What I am doing is keeping the URL citations at the bottom to keep the 
> text clean looking. Sometimes I have some pretty long URLs
>
> In Pandoc I used the command
> 'pandoc -s "First.md" -o First.html
>
> The HTML comes out as expected
> Then I used the Pandoc command
> 'pandoc -s First.html -o updated.md
>
> When you look at the new updated.md file. You will see that all links are 
> on the same line as the text (rather than at the bottom). I was looking for 
> a command to create all these links at the bottom rather than inline. Is 
> there a way to do that?
>
>

-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3ba766cb-b261-4576-8e12-a43496a5bc8fn%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 3461 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: separating citations in md
       [not found]     ` <3ba766cb-b261-4576-8e12-a43496a5bc8fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2023-05-08 12:37       ` Mark Pinsley
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Pinsley @ 2023-05-08 12:37 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 2601 bytes --]

Thank you

On Mon, May 8, 2023 at 8:25 AM Ian Cornelius <ircornelius-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

> Use the option --reference-links. See here:
> https://pandoc.org/MANUAL.html#option--reference-links
> On Sunday, May 7, 2023 at 2:54:47 PM UTC-5 Mark Pinsley wrote:
>
>> I have attached three files
>>
>> First.md
>> First.HTML
>> Updated.md
>>
>> I wrote First.Md
>> it looks like this:
>>
>> Test my reference
>> [Dermamed]
>> [yahoo]
>> [MultiMarkdown]
>> [MarkDown]
>>
>> This is a [Link](www.usatoday) where the url is directly next to the word
>> link in markdown
>>
>> <!-- Citations -->
>> [Dermamed]:      https://www.dermamedsolutions.com
>> [yahoo]: https://www.yahoo.com
>> [MultiMarkdown]: https://fletcherpenney.net/multimarkdown/
>> [Markdown]:   https://daringfireball.net/projects/markdown/
>>
>>
>> What I am doing is keeping the URL citations at the bottom to keep the
>> text clean looking. Sometimes I have some pretty long URLs
>>
>> In Pandoc I used the command
>> 'pandoc -s "First.md" -o First.html
>>
>> The HTML comes out as expected
>> Then I used the Pandoc command
>> 'pandoc -s First.html -o updated.md
>>
>> When you look at the new updated.md file. You will see that all links are
>> on the same line as the text (rather than at the bottom). I was looking for
>> a command to create all these links at the bottom rather than inline. Is
>> there a way to do that?
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "pandoc-discuss" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/pandoc-discuss/gfPOxoBeewc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/3ba766cb-b261-4576-8e12-a43496a5bc8fn%40googlegroups.com
> <https://groups.google.com/d/msgid/pandoc-discuss/3ba766cb-b261-4576-8e12-a43496a5bc8fn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAOtJyj6k_KY3E%2B%2BAu8Q0C9akmR2PEtS7KWb18SoqoCfGPjRbjA%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 4425 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-08 12:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-07 19:54 separating citations in md Mark Pinsley
     [not found] ` <8a80881f-a26a-48e4-be33-3492910aa752n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-05-08 12:25   ` Ian Cornelius
     [not found]     ` <3ba766cb-b261-4576-8e12-a43496a5bc8fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-05-08 12:37       ` Mark Pinsley

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).