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

Fix figure linkattr parameter #435

Closed
wants to merge 1 commit into from
Closed

Conversation

ahelwer
Copy link

@ahelwer ahelwer commented Jul 15, 2022

Have to use $ to operate from the root scope inside a with
Closes #258

Have to use `$` to operate from the root scope inside a `with`
Closes halogenica#258
Copy link
Collaborator

@henryiii henryiii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks correct to me.

(Not related) Personally, I'd like to make the an optional extension and not replace the default figure. (I've got an issue on that somewhere)

@ahelwer
Copy link
Author

ahelwer commented Jul 16, 2022

Yeah I actually use a fork of this theme where the only change is that this figure shortcode is deleted. Some problems I've found with it:

  • Markdown in caption isn't rendered Markdown does not render in figure shortcode #322
  • Very weird method of rendering figures that contain both caption and attr, especially if attrlink is present
  • Doesn't respect figure sizing parameters like width
  • If you click the figure it pops up in this weird way where it isn't even really zoomed in, which also breaks the link attribute; also works terribly if the figure is a vector diagram with a transparent background

So you've got my vote to get rid of it or make it optional.

@ahelwer
Copy link
Author

ahelwer commented Dec 31, 2022

Closing since there doesn't seem to be interest in merging this and it has been superseded

@ahelwer ahelwer closed this Dec 31, 2022
@ahelwer ahelwer deleted the patch-1 branch December 31, 2022 23:12
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

Successfully merging this pull request may close these issues.

figure attr and attrlink broken
2 participants