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

Remove pipe from replaced characters in callouts #213

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

nvitucci
Copy link
Contributor

@nvitucci nvitucci commented Feb 14, 2024

The pipe is excluded from content when copied through the Copy icon, causing it to be skipped when a code block like in the Kafka docs is copied.

This PR seems to fix this behaviour, but I would like to understand what was the rationale for exclusion before applying it.
This change was introduced in #204, but from the discussion I can't understand why the pipe was excluded as well.

@nvitucci nvitucci requested a review from recrwplay February 14, 2024 16:48
Copy link

netlify bot commented Feb 14, 2024

Deploy Preview for neo4j-docs-ui ready!

Name Link
🔨 Latest commit bee4ee1
🔍 Latest deploy log https://app.netlify.com/sites/neo4j-docs-ui/deploys/65cceed597d4d70009f415fa
😎 Deploy Preview https://deploy-preview-213--neo4j-docs-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@nvitucci nvitucci changed the title Remove pipe from excluded content in callouts Remove pipe from replaced characters in callouts Feb 14, 2024
@recrwplay
Copy link
Collaborator

The original intention was to strip lines by removing spaces from the end. Tabs where then also included and the regex for 'tabs or spaces' got a bit mangled.

Copy link
Collaborator

@recrwplay recrwplay left a comment

Choose a reason for hiding this comment

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

Tested locally and works as expected. Thanks @nvitucci !

@nvitucci nvitucci merged commit 620a709 into master Feb 15, 2024
5 checks passed
@nvitucci nvitucci deleted the fix-missing-pipe-copy branch February 15, 2024 09:54
recrwplay pushed a commit to recrwplay/docs-ui that referenced this pull request May 3, 2024
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.

2 participants