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

add link reference option for "no inlines" #176

Open
yshavit opened this issue Aug 11, 2024 · 1 comment
Open

add link reference option for "no inlines" #176

yshavit opened this issue Aug 11, 2024 · 1 comment

Comments

@yshavit
Copy link
Owner

yshavit commented Aug 11, 2024

Right now, we have three options for handling link definitions (including images):

  1. Keep as-is
  2. Always use inline
  3. Always use full reference style: [text][1]

In the last option, we do at least collapsed links ([text][]) and shortcut links ([text]) slightly differently, in that rather than just assigning them a number, we have the full-reference id be the expanded text:

  • [text][] -> [text][text]
  • [text] -> [text][text]

This is pretty ugly and awkward. I should add an option (maybe have it be default? maybe have it be the only option) to keep collapsed and shortcut links as-is, or maybe canonicalize them to either collapsed or shortcut; or maybe just auto-assign a number to them. But basically, the current approach is pretty ugly, especially if the text is a bit longish.

I should also review the various markdown specs to see how portable collapsed/shortcut links are.

@yshavit yshavit added this to the 1.0 milestone Aug 11, 2024
@yshavit
Copy link
Owner Author

yshavit commented Aug 11, 2024

It looks like:

@yshavit yshavit removed this from the 1.0 milestone Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant