8000 Slightly un-semantic code block on Confluence becomes inline · Issue #24 · kepano/defuddle · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Slightly un-semantic code block on Confluence becomes inline #24

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

Open
cpmsmith opened this issue Apr 1, 2025 · 0 comments
Open

Slightly un-semantic code block on Confluence becomes inline #24

cpmsmith opened this issue Apr 1, 2025 · 0 comments

Comments

@cpmsmith
Copy link
cpmsmith commented Apr 1, 2025

Originally this was obsidianmd/obsidian-clipper#435, but it was requested that I open an issue here. Long story short, this HTML:

<div style="display: flex">
  <code style="white-space: pre">
[multiple]
[lines]
  </code>
</div>

…in use on this page, renders in a browser as a code block, but ends up as an inline code span with no line breaks in Obsidian Web Clipper.

It's not clear to me that Defuddle is doing anything wrong per se, or which package between Defuddle, Obsidian Web Clipper, and Turndown ought to fix this. If you run that through Defuddle, you get this:

<div><code>
[multiple]
[lines]
  </code></div>

Which isn't wrong, but it's removed the thing that made it render as a block. Is it in scope for Defuddle to add a pre that wasn't originally there, so that its output will match the standardized code block the README describes?

@cpmsmith cpmsmith changed the title Slightly-malformed code block on Confluence becomes inline Slightly un-semantic code block on Confluence becomes inline Apr 1, 2025
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

No branches or pull requests

1 participant
0