Comments (6)
Your example does not show the plain text
that creates the output.
from tiddlywiki5.
The HTML CODE element does not respect any overflow
settings. overflow requires a "block" element. CODE is an inline element. So the only way to "wrap lines" with extra long inline-code is to use white-space: pre-wrap;
which is exactly, what the Theme-Tweak setting does.
If you use code-blocks instead of `inline code`
```
your-code-block-comes-here
```
It should work as expected.
from tiddlywiki5.
You could do this, if you want to force it into 1 line and a scroll-bar. The scrollbar is created by PRE, which is a block element.
<pre style="overflow:auto">`sssssssssssssssssssssssssssssssssss ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
`</pre>
from tiddlywiki5.
Actually, I did use code blocks in the screenshot.
Since you mentioned inline code, I tested them in tiddlywiki 5.3.4 prerelease with only highlight.js plugin installed.
The plain text:
The inline code is unwrapped and overflowed. I think it shouldn't be unwrapped since it isn't a code block.
For the two code blocks, only the second code block which is rendered by highlight.js showed a scroll bar. The first one is overflowed.
from tiddlywiki5.
You are right. It seems we do it wrong and highlight.js does it right. A bit more experimenting is needed. We need to make sure, that there are no unwanted side effects.
It seems hljs does set the class of the CODE element to display: block; overflow-x: auto
, which seems to do the trick.
A bit of padding adjustment should be needed too.
Nice catch -- Thanks for reporting
from tiddlywiki5.
The padding needs to be adjusted if "Wrap long lines in code blocks" is set to "No" in "Theme tweaks"
from tiddlywiki5.
Related Issues (20)
- [IDEA] add drag-and-drop handling to the $:/AdvancedSearch Filter "export" button HOT 9
- [IDEA] Give custom fields individual selectors based on field name
- [BUG] RSOE from decodebase64
- [BUG] Global variables set by $set widget don't work HOT 11
- [BUG] Map and the Value of the Variable currentTiddler Outside the Filter run in File System Paths HOT 4
- [BUG] Better handling for overflowed content HOT 6
- [Bug] The QR-code in the tiddler toolbar is useless most of the time HOT 1
- [IDEA] Add JSDoc to AST HOT 4
- [IDEA] InnerWiki widget param to control saving location
- [DOCS] Add a "Backlinks" and a "Backtranscludes" list at the end of every tiddler at tw-com HOT 2
- [BUG] MWS application/pdf tiddlers can't be renamed. HOT 4
- [Bug] "tiddlywiki invalid-path --listen" does start a server - IMO it should not HOT 7
- [BUG] "tiddlywiki +extraPlugins invalid-path --listen" causes runtime error. It should return an error message HOT 2
- [IDEA] Resolve inconsistencies between cascade filter run prefix and file system path filters
- [IDEA] Template based generation tool in cli
- [BUG] Unwrapped inline code when setting "Wrap long lines in code blocks" to "No" HOT 1
- [IDEA] Ship Palette with Rendered Wikitext to Final Color Codes HOT 7
- [BUG] Search input in "Filter" tab in advanced search drops key presses as of 5.3.5 on Firefox HOT 2
- [Bug] tm-new-tiddler message creates tags field even if it is empty. -- It should not HOT 1
- [BUG] TiddlyWiki only recognized WebDAV servers that respond to OPTIONS with 200 status, not 204. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tiddlywiki5.