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

Markdown reference links in excerpts don't render correctly #304

Open
Filius-Patris opened this issue Apr 27, 2020 · 5 comments
Open

Markdown reference links in excerpts don't render correctly #304

Filius-Patris opened this issue Apr 27, 2020 · 5 comments

Comments

@Filius-Patris
Copy link

@Filius-Patris Filius-Patris commented Apr 27, 2020

Describe the bug

A post which has a link in the from of [name] and at the end of the page [name]: example.com. After the first sentence (with the link) insert a <!--more--> content wall.

Expected behavior

The link should be clickable in the excerpt

Application configuration

  • Single mode mode
  • Database: sqlite
  • Open registration: no
  • Federation enabled: yes

Version or last commit:
0.12

EDIT: The right term is "excerpt", not "preview".

@thebaer
Copy link
Member

@thebaer thebaer commented Apr 27, 2020

Thanks for reporting this, @Filius-Patris! To be sure, what do you mean by "markdown preview"? The text returned from the /api/markdown endpoint?

@Filius-Patris
Copy link
Author

@Filius-Patris Filius-Patris commented Apr 27, 2020

I meant the frontpage of the blog, where only the text up to <!--more--> is shown. I don't know about the /api/markdown endpoint (it yields 404 for me).

This image shows it:
image
This is what appears on the frontpage feed, but if I click on the post, the link renders correctly. The link destination to [codeberg] is provided at the end of the markdown text.

@Filius-Patris
Copy link
Author

@Filius-Patris Filius-Patris commented Apr 27, 2020

The workaround is quite simple though: Just put the link destination directly after the text (the [name](destination) syntax).
Now that I'm aware of it, I can just put all links needed in the excerpt in there directly.
It might confuse newbies like me, but if you want, you can close the issue as the workaround is trivial.

@SayedDubai
Copy link

@SayedDubai SayedDubai commented May 10, 2020

I am using https://write.tedomum.net/ but i don't know how to add pictures to my post and how to add links

@Filius-Patris
Copy link
Author

@Filius-Patris Filius-Patris commented May 10, 2020

If you're searching for general help how to add images/links somewhere in the post (not just in the excerpt), you may be on the wrong thread.

Check out this resource: https://writefreely.org/docs/latest/writer/writing.md

@Filius-Patris Filius-Patris changed the title Markdown reference links in preview don't render correctly Markdown reference links in excerpts don't render correctly May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.