Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

inline elements lose spaces #34

Closed
kptdobe opened this issue May 28, 2020 · 14 comments · Fixed by #44, #45 or #55
Closed

inline elements lose spaces #34

kptdobe opened this issue May 28, 2020 · 14 comments · Fixed by #44, #45 or #55
Assignees
Labels

Comments

@kptdobe
Copy link
Contributor

kptdobe commented May 28, 2020

https://theblog-adobe.hlx.page/en/drafts/migrated/2020/04/14/using-creativity-to-honorheroes-doing-extraordinary-things-during-covid-19.html

Many spaces are missing. Source DOM contains spans where space is trimmed.

@kptdobe kptdobe self-assigned this May 28, 2020
@kptdobe
Copy link
Contributor Author

kptdobe commented May 28, 2020

The issue is coming from: rehypejs/rehype-minify#19

@davidnuescheler
Copy link

i think this has improved very much, i still found an occurence here:

https://theblog.adobe.com/financial-services-require-artists-touch/

vs.

https://blog.adobe.com/en/drafts/migrated/2020/06/01/financial-services-require-artists-touch.html

see at the very bottom

@kptdobe
Copy link
Contributor Author

kptdobe commented Jun 8, 2020

First, the rehype-minify issue has been fixed, I still need to integrate properly the fix.

And yes, what you describe is the _emphasis with a trailing space _ where space is trimmed on rendering.

I think now this is a bug in our pipeline: Github and VSCode markdown preview can deal with it properly!

@trieloff
Copy link
Contributor

trieloff commented Jun 8, 2020

🎉 This issue has been resolved in version 1.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@kptdobe
Copy link
Contributor Author

kptdobe commented Jun 8, 2020

No, wrong assumption: it works because there is another emphasis to close the sentence:

_emphasis _test_._ in that case GitHub and VSCode parser is smarter than ours.

emphasis test.

vs

_emphasis _test.

@kptdobe
Copy link
Contributor Author

kptdobe commented Jun 8, 2020

Now importer moves the leading and trailing spaces outside some of the inline elements. This full fixes this issue.

@kptdobe kptdobe closed this as completed Jun 8, 2020
@trieloff
Copy link
Contributor

trieloff commented Jun 8, 2020

🎉 This issue has been resolved in version 1.12.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@kptdobe
Copy link
Contributor Author

kptdobe commented Jun 10, 2020

Well... I am just overriding the whole content. You should start testing in.. 2h :)
I check this one.

@kptdobe
Copy link
Contributor Author

kptdobe commented Jun 10, 2020

End even with the current version, I do not see an issue with "team projects". Cache ?

@kptdobe
Copy link
Contributor Author

kptdobe commented Jun 10, 2020

Only thing I see wrong here is: Adoption across teams** **
But here, they do not help me, the DOM is <h2>Adoption across teams<b><br></b></h2>....

@davidnuescheler
Copy link

@kptdobe kptdobe changed the title spans lose spaces inline elements lose spaces Jun 11, 2020
@kptdobe
Copy link
Contributor Author

kptdobe commented Jun 11, 2020

Last one fixed with #55.

@trieloff
Copy link
Contributor

🎉 This issue has been resolved in version 1.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.