Comments (4)
For simple inline styles we do have a wikitext syntax. There should be no need for specialized STYLE tag handling.
See: Styles and Classes in WikiText -- The following code should do the trick without the need for a RED-tag
@@color:red; This is red.@@
For more complex styling needs we should use Stylesheets, which do have a lot more possibilities.
from tiddlywiki5.
@pmario. Please climb down. I'm not a noob. This is not Talk. This is not a support request. It's not about inline-style, it's not about color:red.
This is a bug report about whitespace handling, like the topic title says. It's a tiny bug, true, but a bug nonetheless.
from tiddlywiki5.
Hi @CodaCodr one could argue whether this is a bug. It is how TW5 has always behaved. The core docs don't mention or recommend using the inline <style>
element.
The background is that a single parser component handles HTML elements like <style>
and widgets like <$list>
. It handles all elements/widgets consistently. The OP is asking that the parser recognise the <style>
element and handle it differently by switching the parser mode such that it doesn't recognise wikitext within the element.
One issue with that approach would be that it is actually quite useful to be able to use wikitext to generate style definitions, and we'd lose that ability.
But my deeper concern is that it would introduce an inconsistency into the way that parsing is performed. Granted, HTML parsers behave in that way, but we're not trying to reproduce HTML here; HTML has incredibly complex parsing rules that few people understand, and so the goal for TW5 is to have simpler parsing rules that are easier to understand.
from tiddlywiki5.
Thanks @Jermolene
It handles all elements/widgets consistently. [...] it is actually quite useful to be able to use wikitext to generate style definitions, and we'd lose that ability.
Nuff said. Closing...
from tiddlywiki5.
Related Issues (20)
- The latest version of CodeMirror edit box, using textarea HOT 1
- [IDEA] Flex box syntax for in-tiddler multi-column HOT 2
- [BUG] $action-log always evaluates all functions in its context HOT 1
- [BUG] Uncaught TypeError: process.nextTick is not a function HOT 3
- [IDEA] Advanced Search Filter Tab Should Allow Multi-line Input HOT 1
- TW5-Syntax 2.0.0 Released HOT 8
- [BUG] EditTextWidget inserts extra space below content HOT 3
- [BUG] Plugin tests should not be applied to plugins that are loaded via environment variables HOT 5
- [IDEA] Meaningful Notifications for Permalink and Permaview Messages HOT 2
- [TESTS] all tests for a plugin-type "in development" fail, with no possibility to fix it HOT 3
- [IDEA] Allow Comments Inside $let HOT 5
- [BUG] Fix splitregexp operator JavaScript error on matches with undefined capture groups HOT 9
- [BUG] Unavoidable RSOD Caused by RegExp HOT 11
- [BUG] Tiddler editor layout has lost whitespace HOT 2
- [BUG] testcase procedure: "test failed" message displayed even though no ExpectedResult is defined HOT 1
- [IDEA] Store Tags as Displayed HOT 6
- [IDEA] Replace Plain Contents with Tree Contents in Plugin Tiddlers HOT 3
- Content wrong
- [BUG] `authenticated-user-header` broken for unauthenticated requests
- [IDEA] $action-log and $log widget should have "shortcut parameters" 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.