GithubHelp home page GithubHelp logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
Ok, I'll make it optional and not the default.

Original comment by frolvlad on 21 Jan 2012 at 7:17

from postmarkup.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.