Comments (9)
Maybe I could apply the lowercase here ? I don't know if there's any other implications, but in my experience all bbcode tags should be fine lower-cased.
Yes, TagNode
is a good way to lowercase tag.
from bbob.
I just published 2.5.3 you can try
from bbob.
Maybe reactPreset.extend
does work but the example doesn't spread tags
back in (...tags
) like it does under the hood when extending presetHTML5
? I used the example which excludes that spread...
const preset = reactPreset.extend((tags, options) => ({
+ ...tags,
quote: node => ({
tag: "blockquote",
content: node.content
})
}))
If this is the issue I'd be happy to submit a PR to update the docs.
UPDATE: That does seem to be the issue, I'll submit a PR (#29).
from bbob.
@JiLiZART take a look when you get a chance and let me know your thoughts. I'm pretty much done for now (have been integrating into a project it over the last day or two) but I'm still happy to help with these issues. I submitted PRs for the obvious fixes/updates but I wanted to hear what you had to say on the other things before moving forward.
Again, thanks for your work on this project.
from bbob.
Maybe I could apply the lowercase here? I don't know if there's any other implications, but in my experience all bbcode tags should be fine lower-cased.
from bbob.
@skipjack Thanks for contributing! Any help would be helpful.
I think this will make the project only better.
from bbob.
i use version 2.5.2
[ALT=http://media.thethaovanhoa.vn/2013/06/22/07/32/Pirlo.jpg]Pirlo[/ALT]
has error
Warning: <ALT /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements. in ALT (created by Component) in span (created by Component) in Component (created by App) in App
i seen #42 seem fix this issue ?
from bbob.
@JiLiZART thanks, it's work for me
from bbob.
I freeze this due inactivity
from bbob.
Related Issues (20)
- Implement render function in React preset HOT 1
- Text with [EXAMPLE] take as bbcode HOT 2
- React Native: Failed prop type for 'container' HOT 7
- How to create own BBCode and pass unique attributes on Vue Component
- Newlines get ignored HOT 4
- Feature request: Add position in the string for each node HOT 1
- ES Module Bundling issue HOT 1
- [React] react 15 to 18 HOT 1
- Migrate from Lerna
- Feature request: Support keyword/link parsing HOT 9
- JavaScript Injection using event attributes HOT 2
- Could not find a declaration file for module '@bbob/react/es/render' HOT 1
- Possible to stop parsing children if certain tag is encountered? HOT 4
- html5 preset not complete HOT 1
- Cannot gracefully handle parser error with onError option or try-catch HOT 7
- feat: vue support
- Is there any plan for TypeScript supporting? HOT 5
- Correctly handle null in AST tree
- Handle [b/] tag without collapse all html
- How to create own bbcode preset with react component 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.
from bbob.