Comments (1)
I disagree that this is the expected behavior. Tags do not span multiple lines, so [url=\n\n]
would already not be a valid tag.
[url=
something]link[/url]
I would not expect the above to render a link with newlines in the href. And I think newlines inside a [url]
tag should be replaced with <br />
. But in any case, if you don't agree you're free to implement your own [url]
tag with transform_newlines=False
:
https://bbcode.readthedocs.io/en/latest/formatters.html
from bbcode.
Related Issues (20)
- Problem with :[ HOT 1
- Possible improvements to linker HOT 8
- Quoted option values are cut on square bracket HOT 3
- Parsing links not working correctly HOT 1
- Obscure XSS using url tag HOT 5
- Option to use custom tag opener/closer on formatter level HOT 1
- url should allow specifying target and rel attributes HOT 5
- Problem: lines too looong HOT 4
- Quotation marks in brackes confuses parser HOT 3
- Formatters should only transform their contents and not the contents of their children HOT 8
- Unvalid BBCode Generates HTML HOT 3
- "Dash" symbols inside code block HOT 2
- Output is html escaped even if `escape_html=False` HOT 3
- URLs with ampersand seem to break HOT 2
- make tag options dict case-insensitive
- replace_links=False doesn't work on video tag/mp4
- Unclosed "tag" treated as tag HOT 2
- Question about simple_formatter
- Cosmetic replacement within list tag even when replace_cosmetic=False 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
from bbcode.