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ó:
>
> 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ó:
>>
>> 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 changes:
>>
>> # 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 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 on GitHub.
>>
>> mån 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 working
>>> 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, send
>>> 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-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 "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/5b0bae39-4471-4d1f-a304-c3ac1c49c60b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.