Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RST formatted links conversion #4339

Open
Kristinita opened this issue Feb 2, 2018 · 1 comment
Open

RST formatted links conversion #4339

Kristinita opened this issue Feb 2, 2018 · 1 comment

Comments

@Kristinita
Copy link

Kristinita commented Feb 2, 2018

1. Summary

Formatted link incorrect convert for me from Markdown to reStructuredText.

reStructuredText support formatted links, see Stack Overflow answer.

2. Environment

  • Windows 10 Enterprise LTSB 64-bit EN,
  • pandoc 2.1.1.

3. Example

I have Markdown file:

Erichek — validator for [**Eric's rooms**](https://github.com/Kristinita/Erics-Green-Room).

See full description on **<https://Kristinita.ru/Programs/Erichek>** page.

I want convert it to reStructuredText.

4. Steps to reproduce

pandoc --from markdown --to rst

5. Expected behavior

Erichek — validator for |Eric's rooms|_.

See full description on |https://Kristinita.ru/Programs/Erichek|_ page.

.. |Eric's rooms| replace:: **Eric's rooms**
.. _Eric's rooms: https://github.com/Kristinita/Erics-Green-Room

.. |https://Kristinita.ru/Programs/Erichek| replace:: **https://Kristinita.ru/Programs/Erichek**
.. _https://Kristinita.ru/Programs/Erichek: https://Kristinita.ru/Programs/Erichek

Online demonstration.

6. Actual behavior

Try pandoc! demonstration:

Erichek — validator for `**Eric’s rooms**`_.

See full description on **https://Kristinita.ru/Programs/Erichek** page.

.. _**Eric’s rooms**: https://github.com/Kristinita/Erics-Green-Room

Online demonstration.

Bold links not converted successfully.

Thanks.

@jgm jgm changed the title [Bug] [Markdown to reStructuredText] Formatted links conversion RST formatted links conversion Feb 2, 2018
@danse
Copy link
Contributor

danse commented Mar 1, 2018

to summarize, the idea would be to render styled links using the following syntax:

styled |link|_.

.. |link| replace:: **strong** for example
.. _link: somewhere.go

i express criticism about this approach here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants