-
Notifications
You must be signed in to change notification settings - Fork 26
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
Side by side reference style links not working #28
Comments
I was not aware of this syntax and it seems almost nobody else is 😉 |
You have to include the full example. |
I really have to look at this. Ad hoc I do not believe this is an error but in order to check I would like you to give me the expected html output, images are just not very useful. Thanx |
I am encountering behavior similar to this. Babelmark link Versions:
Markdown: Correct
[](https://crates.io/crates/calm_io)
[](https://docs.rs/calm_io)
[](https://github.com/myrrlyn/calm_io/blob/master/LICENSE.txt)
[](https://crates.io/crates/calm_io)
[](https://github.com/myrrlyn/calm_io)
Incorrect
[![Crate][crate_img]][crate]
[![Documentation][docs_img]][docs]
[![License][license_img]][license]
[![Crate Downloads][dl_img]][crate]
[![Crate Size][loc_img]][source]
[crate]: https://crates.io/crates/calm_io "Crate Link"
[crate_img]: https://img.shields.io/crates/v/calm_io.svg "Crate Version Display"
[dl_img]: https://img.shields.io/crates/dv/calm_io.svg "Download Counter"
[docs]: https://docs.rs/calm_io "Documentation Link"
[docs_img]: https://docs.rs/calm_io/badge.svg "Documentation Display"
[license]: https://github.com/myrrlyn/calm_io/blob/master/LICENSE.txt "License"
[license_img]: https://img.shields.io/crates/l/calm_io.svg "License Display"
[loc_img]: https://tokei.rs/b1/github/myrrlyn/calm_io?category=code "Repository Size"
[source]: https://github.com/myrrlyn/calm_io "Source Code" Rendered: HTML output: <p> Correct </p>
<p>
<a href="https://crates.io/crates/calm_io"> <img src="https://img.shields.io/crates/v/calm_io.svg" alt=""> </a>
<a href="https://docs.rs/calm_io"> <img src="https://docs.rs/calm_io/badge.svg" alt=""> </a>
<a href="https://github.com/myrrlyn/calm_io/blob/master/LICENSE.txt"> <img src="https://img.shields.io/crates/l/calm_io.svg" alt=""> </a>
<a href="https://crates.io/crates/calm_io"> <img src="https://img.shields.io/crates/dv/calm_io.svg" alt=""> </a>
<a href="https://github.com/myrrlyn/calm_io"> <img src="https://tokei.rs/b1/github/myrrlyn/calm_io?category=code" alt=""> </a>
</p>
<p> Incorrect </p>
<p>
<a href="https://github.com/myrrlyn/calm_io" title="Source Code">!</a><a href="https://crates.io/crates/calm_io" title="Crate Link">Crate]</a>
<a href="https://github.com/myrrlyn/calm_io/blob/master/LICENSE.txt" title="License">crate_img]]</a>
<a href="https://docs.rs/calm_io" title="Documentation Link">crate]
[ <img src="https://docs.rs/calm_io/badge.svg" alt="Documentation" title="Documentation Display">
</a>
[ <img src="https://img.shields.io/crates/l/calm_io.svg" alt="License" title="License Display">
[ <img src="https://img.shields.io/crates/dv/calm_io.svg" alt="Crate Downloads" title="Download Counter">
[ <img src="https://tokei.rs/b1/github/myrrlyn/calm_io?category=code" alt="Crate Size" title="Repository Size">
</p> AST output: {:ok,
[
{"p", [], ["Correct"], %{}},
{"p", [],
[
{"a", [{"href", "https://crates.io/crates/calm_io"}],
[{"img", [{"src", "https://img.shields.io/crates/v/calm_io.svg"}, {"alt", ""}], [], %{}}],
%{}},
"\n",
{"a", [{"href", "https://docs.rs/calm_io"}],
[{"img", [{"src", "https://docs.rs/calm_io/badge.svg"}, {"alt", ""}], [], %{}}], %{}},
"\n",
{"a", [{"href", "https://github.com/myrrlyn/calm_io/blob/master/LICENSE.txt"}],
[{"img", [{"src", "https://img.shields.io/crates/l/calm_io.svg"}, {"alt", ""}], [], %{}}],
%{}},
"\n",
{"a", [{"href", "https://crates.io/crates/calm_io"}],
[{"img", [{"src", "https://img.shields.io/crates/dv/calm_io.svg"}, {"alt", ""}], [], %{}}],
%{}},
"\n",
{"a", [{"href", "https://github.com/myrrlyn/calm_io"}],
[
{"img",
[{"src", "https://tokei.rs/b1/github/myrrlyn/calm_io?category=code"}, {"alt", ""}], [],
%{}}
], %{}}
], %{}},
{"p", [], ["Incorrect"], %{}},
{"p", [],
[
{"a", [{"href", "https://github.com/myrrlyn/calm_io"}, {"title", "Source Code"}],
[
"!",
{"a", [{"href", "https://crates.io/crates/calm_io"}, {"title", "Crate Link"}],
[
"Crate]",
{"a",
[
{"href", "https://github.com/myrrlyn/calm_io/blob/master/LICENSE.txt"},
{"title", "License"}
],
[
"crate_img]]",
{"a", [{"href", "https://docs.rs/calm_io"}, {"title", "Documentation Link"}],
[
"crate]\n[",
{"img",
[
{"src", "https://docs.rs/calm_io/badge.svg"},
{"alt", "Documentation"},
{"title", "Documentation Display"}
], [], %{}}
], %{}},
"\n[",
{"img",
[
{"src", "https://img.shields.io/crates/l/calm_io.svg"},
{"alt", "License"},
{"title", "License Display"}
], [], %{}}
], %{}},
"\n[",
{"img",
[
{"src", "https://img.shields.io/crates/dv/calm_io.svg"},
{"alt", "Crate Downloads"},
{"title", "Download Counter"}
], [], %{}}
], %{}},
"\n[",
{"img",
[
{"src", "https://tokei.rs/b1/github/myrrlyn/calm_io?category=code"},
{"alt", "Crate Size"},
{"title", "Repository Size"}
], [], %{}}
], %{}}
], %{}}
], []} I hope this is sufficient information. Please let me know if there is anything more I can provide. Also, thank you for your work on this library! Addendum: presence or absence of the link title |
Hello @myrrlyn and sorry for the late reply, your Babelmark link is appreciated and the information is sufficient. |
Not sure this is a bug or missing configuration. But side by side reference style links not working as intended while adjusting the HTML doc for OldhamMade/TeslaCacher#1.
Sample markdown.
Expected (as rendered in VSCode).
Actual (as generated by EarMarkParser through ex_doc).
The text was updated successfully, but these errors were encountered: