From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/17971 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 01:23:11 -0700 (PDT) Message-ID: <5b0bae39-4471-4d1f-a304-c3ac1c49c60b@googlegroups.com> References: <74beb961-303e-49af-86d9-04193ca2b8b3@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_4805_578826471.1501575791951" X-Trace: blaine.gmane.org 1501575795 409 195.159.176.226 (1 Aug 2017 08:23:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 1 Aug 2017 08:23:15 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCQKDIFYYUHRB4HUQDGAKGQE7FRS44A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Aug 01 10:23:11 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vk0-f57.google.com ([209.85.213.57]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcSSJ-00084o-Cs for gtp-pandoc-discuss@m.gmane.org; Tue, 01 Aug 2017 10:23:07 +0200 Original-Received: by mail-vk0-f57.google.com with SMTP id s199sf673407vke.1 for ; Tue, 01 Aug 2017 01:23:13 -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=2hwamvToQg6xweDll2KeR5GEtqeQr8yocCp9zM+S/1s=; b=s5iQ2AJPJUuogZ93CceMUAWRMzhVwYfsRqHid+OgL72OW7Dnl9woElQq26qntlrTF8 gmsAM9haHZjYCHcccS0w66nwyaAj74YKIAbNLMdMLkjGXDPytY3D+gA/TWRxwx0SWkd4 bGime7tFuUv098fH2PZOJV+BGG1Hbys4PZbqWpTGHFM1LRczXx3u6EtF46boHAvoAzbc 3cOBf9efniNREXgdGBHDNB7z10aQ7HlxgeUzKYEEwdktP4lisOzXVUUBh9W7GMBwQc95 a9ArNkUFD6T66JHo/U3pBWR64bl9+6XJl89Eevb3aASkwoRbZgjtyDxmHBsRGrXXoLOx uIRw== 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=2hwamvToQg6xweDll2KeR5GEtqeQr8yocCp9zM+S/1s=; b=AnD36BzebCjuIstc293dC4vj0ZPZK/Qmwaq0SDfIgeVfkzWqxCazbS7/zaZRG4nZtK XM297DyW7eK8Usz04gy/OCxmTgaw2nBl4wEc54L7B8Q8IADuGq9kFNYMaNEKEa09p/Vt T5WEg6X2Vqc7BAjkNKz4X6apgMMQW2kmtVv31C995bO9EpQsLAP1KSiNY+erRA6IgV8q q1HxtPVcVkGYZRtK0jJvxVVP2yoq0syAJAw2lRLryi4dd7NKxL7QS/UEuBQJt8SO0yOR H3ufu7rWalUotfYi7lqTHQDQQLcASUb/eU7ZPsDlV8Z74PDqVL1KrrKJBvrtGx2+j1kP SC8g== 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=2hwamvToQg6xweDll2KeR5GEtqeQr8yocCp9zM+S/1s=; b=m6OVJMWy6KaLE1I81wok8qDzXwdeHfbW1vNqtjnRGsnEmonqNbHU5F/pVC0G5a4kH6 4cFC8cCvKjkjJkkn1Ht+uS8jCwd8PCN1AA1HPd3fWtZatnPQr/gtjiy7w1ImYX5+AaPb KuQ8JE82+jnfZef927juC1LIMbqMS9qD7wUGjeTundBM5En6oKfvIV8MUG1StlkWt/oU tXLYITerjxg9HGUJBEq/2dGuXoqVBAfCpyTS2SI3dNfmwArUo0/ONjJ0B88C/th5tyHq ExxQ+osPpgMZnfqN+gfjoBCwf3Kv1Ik/q6bXKQ/4DuEJ6Z2TNPrGx2Y0E5xJC5fZbIuJ d8kw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AIVw1125axcaR59NCHoyHzjVpNj/1ZAy08brNUXj3nwasoGAf5cxl/gM Y7kS0qnIKutlzg== X-Received: by 10.36.26.69 with SMTP id 66mr44586iti.12.1501575793249; Tue, 01 Aug 2017 01:23:13 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.107.58.197 with SMTP id h188ls2443777ioa.44.gmail; Tue, 01 Aug 2017 01:23:12 -0700 (PDT) X-Received: by 10.36.57.79 with SMTP id l76mr44970ita.8.1501575792429; Tue, 01 Aug 2017 01:23:12 -0700 (PDT) In-Reply-To: <74beb961-303e-49af-86d9-04193ca2b8b3-/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:17971 Archived-At: ------=_Part_4805_578826471.1501575791951 Content-Type: multipart/alternative; boundary="----=_Part_4806_1746101520.1501575791951" ------=_Part_4806_1746101520.1501575791951 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. as= =20 >> `doc/readme.pdc` and convert it to GitHub Markdown when you make changes= : >> >> # 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 w= hen=20 >> unrendered but has the advantage that you can have only one version of t= he=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 it= ,=20 >>> 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-ab5= a-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/5b0bae39-4471-4d1f-a304-c3ac1c49c60b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_4806_1746101520.1501575791951 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The workaround 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 to use anchor tags, but

There is no = other solution?

Why the text of the reference headers is modified re= moving the first 1.?

Regards

El lunes, 31 de julio de 2017, 1= 9:46:58 (UTC+2), BP escribi=C3=B3:
You can either keep a separa= te 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 changes:

=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"descript= ion">1. Description</a>

which for some reason will be preserved by the GitHub sanitiz= er and let you use `#description` as URL in links. The latter method looks = uglier when unrendered but has the advantage that you can have only one ver= sion of the file which looks good when rendered on GitHub.

<= div class=3D"gmail_quote">
m=C3=A5n 31 juli 2017 kl. 12:41 skrev CesarJ= M <cesarjorg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
Correct the message:


I numbe= r the headers using=C2=A0 my own numbers, and links to these headers, as ex= ample:

# 1 MyTitle

# 2 Other Title

...

[MyLinkTitle](#1-mytitle)

Then, when I convert this file (by exam= ple 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)

But, if we use this form in github repos= itory, the link is not working in github web.

How do I fix this prob= lem?

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/5b0bae39-4471-4d1f-a304-c3ac1c49c60b%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_4806_1746101520.1501575791951-- ------=_Part_4805_578826471.1501575791951--