You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dumping the variable '$excerpt' in ParsedownGravTrait.php before and after that function call (lines 266 & 268) shows that the id is being lost. This is from a check I did with both class and id.
Before:
It does not accept an id or any other attributes besides those three.
Also, I just noticed that there are actually no unit tests for this issue. The function 'testAttributeLinks()' checks the rendering of id's, but only on links, not on images.
Thank you.
The text was updated successfully, but these errors were encountered:
As far as solutions are concerned, I'm not sure what the best option is. Either
Change the parsedownElement() function in Medium.php, but then the calls to that function have to be changed for all media types (and I haven't looked at all to see what those are doing vis-à-vis this problem).
Write a new parsedownElement() function in the ImageMedium.php subclass (which can call the parent method but also tack on the id).
Occurs both with and without markdown extra syntax enabled. The following lines produce img elements with no id attribute:
The problem seems to occur between the 'inlineImage()' function in ParsedownGravTrait.php#L192 and its call to 'parsedownElement(...)' which is in Medium.php#L205.
Dumping the variable '$excerpt' in ParsedownGravTrait.php before and after that function call (lines 266 & 268) shows that the id is being lost. This is from a check I did with both class and id.
Before:
After:
The 'parsedownElement' function has the following call signature:
It does not accept an id or any other attributes besides those three.
Also, I just noticed that there are actually no unit tests for this issue. The function 'testAttributeLinks()' checks the rendering of id's, but only on links, not on images.
Thank you.
The text was updated successfully, but these errors were encountered: