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

在复制figure包裹的img 元素 粘贴转化后有问题 #13307

Closed
1 of 3 tasks
noenif opened this issue Nov 29, 2024 · 7 comments
Closed
1 of 3 tasks

在复制figure包裹的img 元素 粘贴转化后有问题 #13307

noenif opened this issue Nov 29, 2024 · 7 comments
Assignees

Comments

@noenif
Copy link

noenif commented Nov 29, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

image
image
如果没有figure就是正常的.

Expected result

变成这样后就成功了
![c04f001.eps](http://localhost:928/epub_book/About%20Face/OPS/image_fi/766576c04/c04f001.png "图 4-1: 需求定义流程概览")

就是图 4-1: 需求定义流程概览这里多了一个换行符.可能是网页带的样式.但是在typroa中可以成功转换.

Screenshot or screen recording presentation

Version environment

- Version: 
- Operating System: 
- Browser (if used):

Log file

More information

@88250
Copy link
Member

88250 commented Nov 29, 2024

请给一下网页地址,或者给一下 HTML 文本以便调试。

@noenif
Copy link
Author

noenif commented Nov 29, 2024

请给一下网页地址

直接在 这个https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_figcaption网站运行即可

问题代码:
<figure> <img alt='c03f001.eps' class='center' src='https://www.w3schools.com/tags/pic_trulli.jpg' /> <figcaption><p><a id='figure3-1' href='#figureanchor3-1'><b>Figure 3-1:</b></a> If you try to design an automobile that pleases every possible driver, you end up with a car with every possible feature that pleases nobody. Software today is too often designed to please too many users, resulting in low user satisfaction. <a id='figureanchor3-2' href='#figure3-2'>Figure 3-2</a> provides an alternative approach.</p></figcaption> </figure>
正常代码:
<figure> <img src="pic_trulli.jpg" alt="Trulli" style="width:100%"> <figcaption>Fig.1 - Trulli, Puglia, Italy.</figcaption> </figure>

@noenif
Copy link
Author

noenif commented Nov 29, 2024

m

在typroa中
image
image

@88250
Copy link
Member

88250 commented Nov 29, 2024

我这里测试复制粘贴正常:

image

@88250
Copy link
Member

88250 commented Nov 29, 2024

请等下个 dev 版本发布后再测试看看,我先关闭了,如果还有问题,请跟帖。

@88250 88250 closed this as completed Nov 29, 2024
@noenif
Copy link
Author

noenif commented Nov 29, 2024

我这里测试复制粘贴正常:

image

是一个问题代码,不是第二个正常代码.

image
主要因为figcaption里面有p标签这种其他标签.

行吧,看下个版本.

@88250
Copy link
Member

88250 commented Nov 29, 2024

我懂了,稍后确认并改进,感谢感谢。

@88250 88250 reopened this Nov 29, 2024
@88250 88250 self-assigned this Nov 29, 2024
88250 added a commit to 88250/lute that referenced this issue Nov 30, 2024
@88250 88250 closed this as completed Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants