From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/17973 Path: news.gmane.org!.POSTED!not-for-mail From: CesarJ M Newsgroups: gmane.text.pandoc Subject: Re: Reference links to numbered headers of README.md not work in converted formats Date: Tue, 1 Aug 2017 02:23:06 -0700 (PDT) Message-ID: <9f9f5fed-7f09-494f-b69a-b04915d99333@googlegroups.com> References: <74beb961-303e-49af-86d9-04193ca2b8b3@googlegroups.com> <5b0bae39-4471-4d1f-a304-c3ac1c49c60b@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4948_47737600.1501579386164" X-Trace: blaine.gmane.org 1501579388 21845 195.159.176.226 (1 Aug 2017 09:23:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 1 Aug 2017 09:23:08 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCQKDIFYYUHRB6UQQHGAKGQEXNTCWNA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Aug 01 11:23:04 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-yw0-f186.google.com ([209.85.161.186]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcTOH-0005IB-Ed for gtp-pandoc-discuss@m.gmane.org; Tue, 01 Aug 2017 11:23:01 +0200 Original-Received: by mail-yw0-f186.google.com with SMTP id s143sf412963ywg.0 for ; Tue, 01 Aug 2017 02:23:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=lBqQDyixQ9nrdrFXpRG1Q7a7HujBImGlfDdBkh1Cw0E=; b=lkmq0+s/C29wwSTgViUhCYrnsv6yqIAP/7WhzqXLJ0xBb4TuDtC9Tx+yd+lnnvdiQo JME/uZVWQ3hXQKVQhGg1OBuDvdv5PWtiNoZ65gAc4pwcp45ZDTOi4bgb6pJmerTXhsak D8/+d0XrR9/BgvAmgvikQN9MAdOP/kLSiO5KYQx+YoISMd0e9OQKbRbas3zgxWpYUYaQ y6l/mEoS1p1WpRalYCsLH16Euu3iYESnVYtbSWBT5GR73jCdqrZ1DYAnkJ7hr8+LLiNl UhP8rYI9WT1SA/QIrKNgOi2GFKhSAOb6UtREXzwzDeQjwdBCqx9c/Ln4eVwvIaRSMqzt R3aQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=lBqQDyixQ9nrdrFXpRG1Q7a7HujBImGlfDdBkh1Cw0E=; b=o1DSEzO4r/I6yCaSDanGZihtvaxfwOt1HOE2PUEeqdmyTlKfCGAniM0g1irE290KtD FMtOPItB5CIbCU1QAG3Isouz8rQRTQGBVDGxwjWUlIVKVmVrlsdWYUcMbWbEj7RB+nkH jhoClVQgEtMcvGjl5p9AZFSbvV50OHRMRbk6+02O4/QggVkPfq7OQ4BBtBg95COBVXta z0+vxmEG3PMk5kEwdUGNG72d/R9TbZ5igzQpqScCyDUFvHZ+4zZx6WLicl7vjtoCshVz DYSa6zI2PrNu9opqVNCPyaKBi5RM2tSVzN4SiumXWL5YzXg3JCpsyAQQyW3X2AgYhupN qkxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=lBqQDyixQ9nrdrFXpRG1Q7a7HujBImGlfDdBkh1Cw0E=; b=NZgW1Cv5F1EDuZ2YzmpGxNKEbmPv3A4BX8Lbx7hDDJAWTI6XGIwYCjGz5qsqrCdEFy rcrcUMMJ59+rYh1cFBqJuL0kVYig6iWZjWCyu3VTFd9NM8RtJ5Kb/Zq2rJC+/W5IiSnQ HLlc3+sC9M8JCXUGy0Ck0EtmDEi85EBk/HQw6QLzzz6Jq2X4RK8bC/cZ0umkws+ubKrZ Lj94rpDzCU97Mno7fGaXG/0zmIayE1yu2iCTXI51mGbSHTG46PnjWll2qtETp8fF9u9t 6CKX6xWzK9KksdDxzloXygWFWm4je6Ln/a+EDuX/C0dC8/jaUFe/t4veY1tqu+uqzV+Y 57LQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AIVw113OeAsYilrmWIFFOLn1Qv5UttfZDLoTppT0xVEq6WEFY6bzoslF VFkpaS9M67YwNQ== X-Received: by 10.36.82.208 with SMTP id d199mr50921itb.7.1501579387415; Tue, 01 Aug 2017 02:23:07 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.107.128.165 with SMTP id k37ls10125209ioi.37.gmail; Tue, 01 Aug 2017 02:23:06 -0700 (PDT) X-Received: by 10.36.80.193 with SMTP id m184mr51053itb.6.1501579386670; Tue, 01 Aug 2017 02:23:06 -0700 (PDT) In-Reply-To: <5b0bae39-4471-4d1f-a304-c3ac1c49c60b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: cesarjorgemartinez-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:17973 Archived-At: ------=_Part_4948_47737600.1501579386164 Content-Type: multipart/alternative; boundary="----=_Part_4949_894904847.1501579386164" ------=_Part_4949_894904847.1501579386164 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This not working when it convert to docx, pdf or odt El martes, 1 de agosto de 2017, 10:23:12 (UTC+2), CesarJ M escribi=C3=B3: > > The workaround using anchor tags: > # 1. Title > [1. Title](#1-title) > > But this is very ugly solution > > > El martes, 1 de agosto de 2017, 9:22:04 (UTC+2), CesarJ M escribi=C3=B3: >> >> I'll try to use anchor tags, but >> >> There is no other solution? >> >> Why the text of the reference headers is modified removing the first 1.? >> >> Regards >> >> El lunes, 31 de julio de 2017, 19:46:58 (UTC+2), BP escribi=C3=B3: >>> >>> You can either keep a separate version of the file in Pandoc Markdown= =20 >>> with manually added GitHub style ids, which Pandoc will pick up, e.g. a= s=20 >>> `doc/readme.pdc` and convert it to GitHub Markdown when you make change= s: >>> >>> # 1. Description {#1-description} >>> =20 >>> or add an anchor tag with a pandoc-style id as value of the `name`=20 >>> attribute >>> >>> # 1. Description >>> >>> which for some reason will be preserved by the GitHub sanitizer and let= =20 >>> you use `#description` as URL in links. The latter method looks uglier = when=20 >>> unrendered but has the advantage that you can have only one version of = the=20 >>> file which looks good when rendered on GitHub. >>> >>> m=C3=A5n 31 juli 2017 kl. 12:41 skrev CesarJ M = : >>> >>>> Correct the message: >>>> >>>> >>>> I number the headers using my own numbers, and links to these headers= ,=20 >>>> as example: >>>> >>>> # 1 MyTitle >>>> >>>> # 2 Other Title >>>> >>>> ... >>>> >>>> [MyLinkTitle](#1-mytitle) >>>> >>>> Then, when I convert this file (by example to docx format), and open= =20 >>>> it, the MyLinkTitle is not working. >>>> >>>> >>>> In the documentation it is said that I need to write the reference as: >>>> [MyTitle](#mytitle) >>>> >>>> But, if we use this form in github repository, the link is not working= =20 >>>> in github web. >>>> >>>> How do I fix this problem? >>>> >>>> Regards, >>>> >>>> --=20 >>>> You received this message because you are subscribed to the Google=20 >>>> Groups "pandoc-discuss" group. >>>> To unsubscribe from this group and stop receiving emails from it, send= =20 >>>> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>> To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>> To view this discussion on the web visit=20 >>>> https://groups.google.com/d/msgid/pandoc-discuss/a5021369-5323-4cdc-ab= 5a-ecac3b78983f%40googlegroups.com=20 >>>> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> --=20 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 e= mail 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/9f9f5fed-7f09-494f-b69a-b04915d99333%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_4949_894904847.1501579386164 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This not working when it convert to docx, pdf or odt
El martes, 1 de agosto de 2017, 10:23:12 (UTC+2), CesarJ M escribi=C3=B3= :
The workarou= nd using anchor tags:
# <a name=3D"1-title"></a>1.= Title
[1. Title](#1-title)

But this is very ugly solution

El martes, 1 de agosto de 2017, 9:22:04 (UTC+2), CesarJ M escribi=C3= =B3:
I'll try t= o use anchor tags, but

There is no other solution?

Why the te= xt of the reference headers is modified removing the first 1.?

Regar= ds

El lunes, 31 de julio de 2017, 19:46:58 (UTC+2), BP escribi=C3= =B3:
You can either keep a separate version of the file in Pandoc= Markdown with manually added GitHub style ids, which Pandoc will pick up, = e.g. as `doc/readme.pdc` and convert it to GitHub Markdown when you make ch= anges:

=C2=A0 =C2=A0 # 1= . Description {#1-description}
=C2=A0 =C2=A0=C2=A0
or add an anchor tag with a pandoc-style id as value = of the `name` attribute

= =C2=A0 =C2=A0 # <a name=3D"description">1. Description</= a>

which for some rea= son will be preserved by the GitHub sanitizer and let you use `#description= ` as URL in links. The latter method looks uglier when unrendered but has t= he advantage that you can have only one version of the file which looks goo= d when rendered on GitHub.

m= =C3=A5n 31 juli 2017 kl. 12:41 skrev CesarJ M <cesar= jorg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
Cor= rect the message:


I number the headers using=C2=A0 my own= numbers, and links to these headers, as example:

# 1 MyTitle
# 2 Other Title

...

[MyLinkTitle](#1-mytitle)
=
Then, when I convert this file (by example to docx format), and open it= , the MyLinkTitle is not working.


In the documentation it= is said that I need to write the reference as:
[MyTitle](#mytitle)
<= br>But, if we use this form in github repository, the link is not working i= n github web.

How do I fix this problem?

Regards,

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discus...@googlegroups.com.
To post to this group, send email to pandoc-...@googleg= roups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pan= doc-discuss/a5021369-5323-4cdc-ab5a-ecac3b78983f%40googlegroups.c= om.
For more options, visit https://groups.google.com= /d/optout.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/9f9f5fed-7f09-494f-b69a-b04915d99333%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_4949_894904847.1501579386164-- ------=_Part_4948_47737600.1501579386164--