From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/17975 Path: news.gmane.org!.POSTED!not-for-mail From: Melroch Newsgroups: gmane.text.pandoc Subject: Re: Reference links to numbered headers of README.md not work in converted formats Date: Tue, 01 Aug 2017 12:44:29 +0000 Message-ID: References: <74beb961-303e-49af-86d9-04193ca2b8b3@googlegroups.com> <5b0bae39-4471-4d1f-a304-c3ac1c49c60b@googlegroups.com> <9f9f5fed-7f09-494f-b69a-b04915d99333@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c056362c74a5d0555b082f0" X-Trace: blaine.gmane.org 1501591488 3201 195.159.176.226 (1 Aug 2017 12:44:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 1 Aug 2017 12:44:48 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBOPPQHGAKGQEKMVVSNI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Aug 01 14:44:40 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pf0-f185.google.com ([209.85.192.185]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcWXN-0000JJ-3c for gtp-pandoc-discuss@m.gmane.org; Tue, 01 Aug 2017 14:44:37 +0200 Original-Received: by mail-pf0-f185.google.com with SMTP id h27sf912832pfk.2 for ; Tue, 01 Aug 2017 05:44:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1501591481; cv=pass; d=google.com; s=arc-20160816; b=FA3S2XQ6wwuJ9sNxRq7pVCmqdKIZWUhoMfv+md4w8Vx/dDzVNW2nGN4P1y0QkGRnTX ipW3axOURyZMrJpAD04rbXyXRusV7EFjD9rOp77NeyYlCVThwayIy6xZIOM95CK3qzuV qDJKLUZLy+3i1NultLs4g7495Q9Th7nHx0oSwjV0TkCVTHeH/g5DQU4xtb8B4xtZOdJH Pn68YrUIQpVwl8rv3jAN9yJoeopBa0ZLGcqz87O0h8KrPT7MUJHFVV33bxLJk+1QZB1j SPwAF1VzNlvhIMLdPnkpGWV2LStgAJ9276gAewHjB2fU1M1+vswENHNf8cHA5vb6nasG fSrA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:arc-authentication-results :arc-message-signature:sender:dkim-signature:dkim-signature :arc-authentication-results; bh=ZwYNNJcJ6M3h7fS8IsduJDdDW1kSco7kMToOJlR475M=; b=yBeQQKaNPtrvHQa3GW6BdrzKKmvAJ29fCgccilaqz5kvx1k8jWKiNlCwnSPdSaQlkg 9n3+PDXz6v4ZaDe63kwAWmPQ3wYC9ceR1UQGMkgiSe6Pi0xvIXQ1sUOJ73DfyjuhNmFn Sv5JgtXDirouByVNW1XpmKq33ytPHM5oQ+1JWJmQGQ7/XicA91VLKS1+LXfOxzGQU1hb N/wxE2eULkbEAx4oTOFYe67uIFIbw/Otq4h6DeSgnzhfJbRir4TQKP3zS5lAoOwSOl4R ZotYQOuC161r6tRDW95kKm4ybAqmSRuwNppSh6KM3dBwg7tJjqhFbkSTQHmy8gA5FGWe IuMA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.b=NdAQe0s0; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:400d:c09::22d as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=ZwYNNJcJ6M3h7fS8IsduJDdDW1kSco7kMToOJlR475M=; b=ehESQn3W/1H/Obepyqqx4iZtqSLW1XJ7VVRUrUqTS3+fZtUIyAvgcmEAsKbTMDAgwQ BcQ35G10zIXXvA4V7Bf+rb1TsL3BsTwVWY1+Xky9uLCWtrUDU8ZHd2HIhKjI57BkyM46 1TY9vyUlPN/aq0oBCV0q58ccpgQXseJ4waflV30Dr8mC+k9GfUbTvEq8tCxkna/ZZuoK SrVGYP6vNNcATsIED7ACpCCSZ2lsmsH94hS6bBgfp9BI7zQdfkvTXdqndkqHObajoWQ5 46dOEn17dnCW6J1LpscpGAtlU6jR0+cWTU223/YhP6DtdmV/hZlyRTV/NJVv7BG/sim+ 0uKQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=ZwYNNJcJ6M3h7fS8IsduJDdDW1kSco7kMToOJlR475M=; b=iRXSSzOot6WhqXT/a4Hbe1ax6irCOaxX7I8eM4+19q5QgXPjeGsyHI2mKo1NUCHBLa VrVbjT8YBkGY0MHaT/rD14qEBDZZ2kx3aGoFNNXnRT2sizhcVEhgI1EwdDNYpOo5ehis /qzS59I7ZZLbu0UMXKqHMQ3iDjZpXvOExx+ulibzCm4rP59hFzg7P9XfA7pTUh0d9fLn Wrmt2tjWwLOXO23aLJ1D2aqWo2OKxEV3Olti7pnL6TeqViI7FsNDOstPsgxQ/XBcZoxR u8nNa89KcxlaETdO2IF8k+ljqhrIvtedGtBLmOEfqsjz5QwkeL4d1Qqme8bE9eLBBG2m sTKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=ZwYNNJcJ6M3h7fS8IsduJDdDW1kSco7kMToOJlR475M=; b=YBthiFzb7xpzqpkQ/jNn1CoXpecHb9LUB1Ks65hq8SM3DRuhoZ+BUMD439cGt2uMNb EeYxXUJW6q5TBN948sh1AAIUg3PJHDQq6OHevHQQFwzV10zhZ7ub9iTWit2j6knZXsbG FmoACpm898GLrJtCasGkXUn1CukbM6v8oeHCgzg370/HhDGIilwO1bJ8gsfqK1VH4Tes 32XE6oIfXDhBtf4ZOm+9j4e7JOz17aa00ZFqNUTMGQMkIfHbm7VUtHsvaKIsLxf3/sxo Dab1XgqROkJX2zqBeosFD+Cw97oeCDZQvq+XJQ/Y69ZsXXAw6DtMFFrq5gpMYGCoQ9wc qNRg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AIVw1111E4wr8k9fuN6wa1SiwPUtIuTH6JFP5XAxC1RkhX0KgqrOtlkV TGcdAhYr5X6oGA== X-Received: by 10.36.107.3 with SMTP id v3mr73595itc.2.1501591481733; Tue, 01 Aug 2017 05:44:41 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.36.67.133 with SMTP id s127ls1042452itb.8.canary-gmail; Tue, 01 Aug 2017 05:44:40 -0700 (PDT) X-Received: by 10.99.124.26 with SMTP id x26mr15159982pgc.36.1501591480878; Tue, 01 Aug 2017 05:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501591480; cv=none; d=google.com; s=arc-20160816; b=nfZLbTP5VACpJ1s4NKIfhfchOCTp+DPgGPTqxUVEOpHw2nv6BuGuGIwKFHj9m0ITLN BQ9jRorx1s9sWt5YOb2bV2WKK6O0QDSrngP45jSo6zvqyvTzlPh8KwkPB8gYOpuq0lxY 34uKNFribACKFg+PX9N9or0iucLLvIqXdUv8EExbcQ7k+sqJodBuX1P52McN1KxaZcwB lHXX3zBF+YzPX9H0aSHfbAUQZqR+GProGdYmlfkiyLtMQlxTyDNNtPoMfPTNxX1o8nIE QY8TY1cpP2WHynd9lf879PlRrg2DahviOpOIhQV37q/PYoe6m29By03VPcruEcFu9rg5 D+Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature:arc-authentication-results; bh=2Z2AT3zmQl+8nsYnmwkM5EA/rVxZeW/LoEBRc0RMNa8=; b=pvlLjAWJK2INLbcP1GP46n6A9EPHDum5HMB6lRNHfUUbnKgCcPL4LLjYTA6AEjn020 GU06yjt9G1mHw0sfMbZ+KiloSC8H/EAR/FoTt1epGkVGYfXRatKCMC+EY36lrmX/ryhv BWCHaqaDpPp398yC+e+LxBl/GX1JAOlZ29iNH3EN5ls0fkzCrWJEcdTH3M3gbOFUkuyW G4GhYbFyrgUduiU5f8FoOtGX6PShB8aMSfJQF1jv0yuHJLg5WWuADQU+RzJtrUfLGU3P bLT8SuaSjN9KjKMPm71WnM9knQNF4Ksintgzd2qU5tWgq1FEKU+B5gzePmJ9F3dqsS4t R18A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.b=NdAQe0s0; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:400d:c09::22d as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Original-Received: from mail-qk0-x22d.google.com (mail-qk0-x22d.google.com. [2607:f8b0:400d:c09::22d]) by gmr-mx.google.com with ESMTPS id r67si390660ywg.9.2017.08.01.05.44.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Aug 2017 05:44:40 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:400d:c09::22d as permitted sender) client-ip=2607:f8b0:400d:c09::22d; Original-Received: by mail-qk0-x22d.google.com with SMTP id d145so8083159qkc.2 for ; Tue, 01 Aug 2017 05:44:40 -0700 (PDT) X-Received: by 10.55.104.148 with SMTP id d142mr27494781qkc.182.1501591480255; Tue, 01 Aug 2017 05:44:40 -0700 (PDT) In-Reply-To: <9f9f5fed-7f09-494f-b69a-b04915d99333-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.b=NdAQe0s0; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:400d:c09::22d as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com 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:17975 Archived-At: --94eb2c056362c74a5d0555b082f0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable That's strange. As far as I know Pandoc's automatic targets are created anyway. At least they are when converting to HTML or LaTeX. I'm on holiday so away from any computer with a real Pandoc install but I used the online demo to convert an equivalent example and it seems that when converting to OpenDocument no anchors for headings are created. I tried with a span and a Pandoc heading id too, without any change in the results. tis 1 aug. 2017 kl. 11:23 skrev CesarJ M : > 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 >>>> 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 chang= es: >>>> >>>> # 1. Description {#1-description} >>>> >>>> or add an anchor tag with a pandoc-style id as value of the `name` >>>> attribute >>>> >>>> # 1. Description >>>> >>>> which for some reason will be preserved by the GitHub sanitizer and le= t >>>> you use `#description` as URL in links. The latter method looks uglier= when >>>> unrendered but has the advantage that you can have only one version of= the >>>> 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, 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) >>>>> >>>>> But, if we use this form in github repository, the link is not workin= g >>>>> in github web. >>>>> >>>>> How do I fix this problem? >>>>> >>>>> Regards, >>>>> >>>>> -- >>>>> 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, sen= d >>>>> 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 >>>>> https://groups.google.com/d/msgid/pandoc-discuss/a5021369-5323-4cdc-a= b5a-ecac3b78983f%40googlegroups.com >>>>> >>>>> . >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> -- > 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/9f9f5fed-7f09-494f-b69a-= b04915d99333%40googlegroups.com > > . > 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/CADAJKhBETYNY%2B31e2gKm4dhJGc3QWLnqoEvACP9stVCox6-xdg%40mail= .gmail.com. For more options, visit https://groups.google.com/d/optout. --94eb2c056362c74a5d0555b082f0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
That's strange. As far as I know Pandoc's automatic targets ar= e created anyway. At least they are when converting to HTML or LaTeX. I'= ;m on holiday so away from any computer with a real Pandoc install but I us= ed the online demo to convert an equivalent example and it seems that when = converting to OpenDocument no anchors for headings are created. I tried wit= h a span and a Pandoc heading id too, without any change in the results.

tis 1= aug. 2017 kl. 11:23 skrev CesarJ M <cesarjorgemartinez-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
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:
# <a name=3D"1-title"></a>1. T= itle
[1. Title](#1-title)

But this is very ugly solution

<= br>El martes, 1 de agosto de 2017, 9:22:04 (UTC+2), CesarJ M escribi=C3=B3= :
I'll try to use anchor ta= gs, but

There is no other solution?

Why the text of the refer= ence headers is modified removing the first 1.?

Regards

El lu= nes, 31 de julio de 2017, 19:46:58 (UTC+2), BP escribi=C3=B3:
Yo= u can either keep a separate version of the file in Pandoc Markdown with ma= nually added GitHub style ids, which Pandoc will pick up, e.g. as `doc/read= me.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` att= ribute

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

which for some reason will be prese= rved by the GitHub sanitizer 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 version of the file which looks good when rendered o= n GitHub.

m=C3=A5n 31 juli 2= 017 kl. 12:41 skrev CesarJ M <cesarjorg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org= >:
Correct the message:=


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

# 1 MyTitle

# 2 Other Title<= br>
...

[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 n= eed 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?

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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
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/pandoc-discuss/a5021369-5323-= 4cdc-ab5a-ecac3b78983f%40googlegroups.com.
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 pandoc-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-b04915d9= 9333%40googlegroups.com.
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://group= s.google.com/d/msgid/pandoc-discuss/CADAJKhBETYNY%2B31e2gKm4dhJGc3QWLnqoEvA= CP9stVCox6-xdg%40mail.gmail.com.
For more options, visit http= s://groups.google.com/d/optout.
--94eb2c056362c74a5d0555b082f0--