Comments (4)
Not sure how useful that is for the general case users commenting. Generally
you just copy the url from the address bar to the url tag. Local links also
make the content dependant on the current domain. If you display the content on
a mobile site, for example, it could break the links.
Thanks for the patch, but I won't be applying it. If you could make it optional
and not the default I may reconsider...
Original comment by willmcgugan
on 21 Jan 2012 at 7:12
- Changed state: WontFix
from postmarkup.
Ok, I'll make it optional and not the default.
Original comment by frolvlad
on 21 Jan 2012 at 7:17
from postmarkup.
BTW, I think that your example about mobile site version is strange. If links
at desktop and mobile versions differ then you are doing something wrong. If
mobile version developed right, then local links navigate through mobile
version.
Original comment by frolvlad
on 21 Jan 2012 at 7:29
from postmarkup.
Here is patch with optional local_links.
Demonstration:
In [1]: from postmarkup.parser import create
In [14]: render_bbcode = create().render_to_html
In [15]: render_bbcode('[link=/photos/]See photos[/link]')
Out[15]: u'See photos'
In [16]: render_bbcode = create(local_links=True).render_to_html
In [17]: render_bbcode('[link=/photos/]See photos[/link]')
Out[17]: u'<a href="/photos/">See photos</a>'
Original comment by frolvlad
on 21 Jan 2012 at 9:10
Attachments:
from postmarkup.
Related Issues (20)
- Wrong detection of closed tag? HOT 4
- Do not insert <br> within <pre> tag HOT 4
- Adding table tags HOT 5
- Improve right alignment tag HOT 3
- [url] inside [code] HOT 6
- FEATURE: isolate the HTML from the tag generation logic HOT 3
- Make postmarkup support python3 HOT 2
- URL escaping bugs HOT 4
- Suggestion: Relative URL option HOT 1
- Cleaning tags with spaces HOT 5
- Big performance problem HOT 3
- Let's develop at github? HOT 1
- phpBB style tags? HOT 3
- Unnecessary extra tags HOT 1
- OrderedListTag not in __all__ HOT 1
- Graceful handling of invalid [img] URLs / schemas HOT 3
- \n in code tag HOT 1
- 1.2.1 release made in secret? HOT 4
- cirilic url bug
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 postmarkup.