From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/17970 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 00:22:04 -0700 (PDT) Message-ID: <74beb961-303e-49af-86d9-04193ca2b8b3@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4970_1075748446.1501572124183" X-Trace: blaine.gmane.org 1501572126 27817 195.159.176.226 (1 Aug 2017 07:22:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 1 Aug 2017 07:22:06 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCQKDIFYYUHRBHGYQDGAKGQEJWJI2LQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Aug 01 09:22:01 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ua0-f185.google.com ([209.85.217.185]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcRV9-0006rS-LF for gtp-pandoc-discuss@m.gmane.org; Tue, 01 Aug 2017 09:21:59 +0200 Original-Received: by mail-ua0-f185.google.com with SMTP id n25sf529795uai.2 for ; Tue, 01 Aug 2017 00:22:06 -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=gq48Fim10wvPtiCF2pzUF7LDG6MjHriE2T2aMBuWfPo=; b=OsVaFlMW1PDOBgAGXt8UpCAlqPoD2L1GgCnj0WtXCqKL3uc99l2LcTlfCtT4T9h4e+ PRsQkZHqKof3LcaZQPJP13MZBNV6ODwZrmgYhbYLyejI9w2s+zSoG+q/+GVKKM9cAFbD eq5UffsrrpQYPkW4AaOZakOeqbFivdjUaxWUbWYkWc5kexDx6q764sZhcOg8IvHLkkEf KBVs3kZZ/F2rkPFTWKQSoR4nGEDavRd4OiJL3YhNweNLLgzlltIYMWn1cZf9iIBLbGmh RAe7ststwKPyBihwQbPNndg28pLxpwakSiX0wpANtKlJm8aUR5ZtRqr7GpeZ1dERL3y7 wduQ== 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=gq48Fim10wvPtiCF2pzUF7LDG6MjHriE2T2aMBuWfPo=; b=YIOHG3WVmbOb2qlxM6yVeOjAH8GclhBsj/BP9Z+MCWVXFZ+fatNWpt8sIlkCWq00Dd nmaKmd07Duj4xrbGoVFLel18pXpgTeJuC7Xa6ekmotbZltc0v6nhrNsrrp8IeYtxlrHD OpvkkfWNwYK9vHoF5oQrbgZ/GKa85ZyAaJikBSkLN9dpXZ6dF1EUQUzfjG82fVU2mP7l 8LHOFO3YJ53VnfQYyF1+8qDnlSkN/XYOj3PbIKn0BGhLLWT5crOpwbxERBT46zf6RVuG nmEU3XPSQuXu1FxwOl8ZEVfxao+QrfbGRg3RsBxbTZGy6ZRc1NiYNBcXniAXx6HMQ5KF uJrA== 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=gq48Fim10wvPtiCF2pzUF7LDG6MjHriE2T2aMBuWfPo=; b=go19c6Ww3yb5mp+tEK0fHcf+360ugjcpe4MZS0l+M//Dpy2XBldoEQ+YWmwaUmDcbn 79OhW6/6upxkg+p55WpfVF+i53GhmJ5i041a5jKRBK5cISMv5SgzR6vU4u9f946WgMHH 6uqGjZY53hq1nQ2fn21jWPE5bxrj+EyB0qSNtcOw8FJuaJa99pItJdTe3ttCacrNjlUq 48hJtntMU6MSL7K8k5n9gDqOK59czVmHbYltY/AruEi3EVtlbRmnwnj4ycm3xqPCNDkS RHS0LbVil72INlgbAZJN/cPkIYBGQiCY1mzBIuGg9G0Xuc7FCR3/WDMXq8VPUVSuOInL FMwg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AIVw113OHxO+/7SLdSjOsJXh49MhvCBckIDlawc22ERJ9r3/jKq83A4E XLkHjiFxJnQ3Kg== X-Received: by 10.36.39.140 with SMTP id g134mr37425ita.7.1501572125622; Tue, 01 Aug 2017 00:22:05 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.107.146.87 with SMTP id u84ls10213182iod.11.gmail; Tue, 01 Aug 2017 00:22:04 -0700 (PDT) X-Received: by 10.36.3.81 with SMTP id e78mr38052ite.9.1501572124726; Tue, 01 Aug 2017 00:22:04 -0700 (PDT) In-Reply-To: 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:17970 Archived-At: ------=_Part_4970_1075748446.1501572124183 Content-Type: multipart/alternative; boundary="----=_Part_4971_457710453.1501572124183" ------=_Part_4971_457710453.1501572124183 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 wit= h=20 > 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 wh= en=20 > unrendered but has the advantage that you can have only one version of th= e=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 i= n=20 >> github web. >> >> How do I fix this problem? >> >> Regards, >> >> --=20 >> You received this message because you are subscribed to the Google Group= s=20 >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n=20 >> email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . >> To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org=20 >> . >> To view this discussion on the web visit=20 >> https://groups.google.com/d/msgid/pandoc-discuss/a5021369-5323-4cdc-ab5a= -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/74beb961-303e-49af-86d9-04193ca2b8b3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_4971_457710453.1501572124183 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'll try to use anchor tags, but

There is no ot= her solution?

Why the text of the reference headers is modified remo= ving 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 sepa= rate version of the file in Pandoc Markdown with manually added GitHub styl= e ids, which Pandoc will pick up, e.g. as `doc/readme.pdc` and convert it t= o GitHub Markdown when you make changes:

<= div dir=3D"auto">=C2=A0 =C2=A0 # 1. Description {#1-description}
=C2=A0 =C2=A0=C2=A0
or add an anchor ta= g with a pandoc-style id as value of the `name` attribute

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

which for some reason will be preserved by the GitHub sanit= izer and let you use `#description` as URL in links. The latter method look= s uglier when unrendered but has the advantage that you can have only one v= ersion of the file which looks good when rendered on GitHub.
m=C3=A5n 31 juli 2017 kl. 12:41 skrev Cesa= rJ M <cesarjorg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
Correct the message:


I number the headers usin= g=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 do= cumentation 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 in github web.

How do I fix this problem?

Regard= s,

--
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-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pand= oc-discuss/a5021369-5323-4cdc-ab5a-ecac3b78983f%40googlegroups.co= m.
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/74beb961-303e-49af-86d9-04193ca2b8b3%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_4971_457710453.1501572124183-- ------=_Part_4970_1075748446.1501572124183--