-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Spaced string in imgTag #1277
Comments
I have the question the same as you don‘t sloved, i don't know the reason. |
I looked into the source code.
Once the dimensions are processed, the code does: To fix that, I have to look how the content of a tag is split... PS.: The problem dates back to May 16! Nobody had the time to fix that? (I know, that's something that can be done by contributors...) |
OK, I found a workaround... Apparently, it might be Swig's fault for bad parsing of the parameters... |
@PhiLhoSoft thanks very much, it's looks works through your workaround. |
@Xuanwo Why did you close this issue? It is not solved at all! I just gave a workaround. |
Sorry for miss leading for closing the issue when I hadn't read it. I close the issues through the mail #1277 (comment) which I thought sloved. |
Maybe this PR will solve your issue ? #2949 |
imgTag first parse title and alt from the 6th argument, then split them. Line 13 in f37557a
Note the usage is different from the previous comment, as there is only one pair of single quote. The doc also shows title and alt are parsed from the 6th argument.
This means imgTag doesn't support parsing alt from the 7th argument. |
Hexo v3.0
Using the img tag plugin the Alt attribute gets rendered as part of the the title attribute.
Example code used to test:
HTML Output
The text was updated successfully, but these errors were encountered: