Comments (4)
br
tag is not supported. Not sure if we can support it, since block/inline layout is not also supported. We only have flex layout.
However br
tag is supported in richtext
from core.
In that case, maybe rich text should be enabled by default to support this? This might have unwanted consequences but might be worth an effort.
Another idea would be to custom parse <br>
tags in the text the same way as richtext does it but you would have more control over the implementation, on what to support and what to render as
tag.
from core.
Rich-text is already enabled by default but there is a difference between this:
<span>This is multiline<br/>text that we comapre</span>
And this:
<span>{`This is multiline<br/>text that we comapre`}</span>
First one will not work but second one will. In the first one, br
is treated as just another React component. This will also work:
<richtext>This is multiline<br/>text that we comapre</richtext>
Because we handle children of the richtext
in a special renderer.
But maybe this case can be fixed by converting all br
tags to newline character. I will check.
from core.
Added a basic br
component in v0.14.0. It is not perfect but it should work for most cases.
from core.
Related Issues (20)
- Support flex gap css property? HOT 1
- Scroll position resetting after clicking input HOT 3
- console.log only shows the first parameter HOT 1
- [UGUI] Text scaling with `rem` is not the same as in web browsers HOT 4
- [UGUI] Line-Height with `rem` is not the same as in web browsers HOT 3
- ReactUnity polyfils are not loaded from Resources HOT 4
- `<view>` GameObject is not removed after Restart HOT 6
- [UGUI] Performance Improvement to not create GameObjects that are empty HOT 1
- [UGUI] Performance improvement for non rounded elements HOT 2
- [UGUI] Pointer events are not consistent if parent have none and children have auto HOT 3
- Image Quality/Resolution HOT 5
- onMouseDown, onPointerDown and probably more events do not work as intended HOT 5
- Auto-Reload after changes in code are not reflected or automaticaly updated. HOT 1
- Created canvases should inherit properties from the main canvas HOT 1
- What's the best practice to use Router? HOT 2
- Chinese didn't render in ReactUnity canvas HOT 2
- Inconsistent element rendering HOT 4
- [CSS] "width: 100%" seems to not work inside of Unity HOT 1
- compare with react-unity-webgl HOT 1
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.
` tag is not respected when considering line height
from core.