Comments (4)
we generally want to decide to nofollow based on a heuristic, e.g., is this
link inside our network at http://stackexchange.com/sites -- or outside it?
In my opinion, nofollowing links should be done as a separate pass. I guess I
could support "nofollow everything by default, then unfollow just the safe
links" but either way it is a loop across all the URLs in the input with some
custom logic that isn't really markdown specific.
Original comment by [email protected]
on 12 Nov 2010 at 8:52
from markdownsharp.
Original comment by [email protected]
on 12 Nov 2010 at 9:02
- Added labels: Priority-Low
- Removed labels: Priority-Medium
from markdownsharp.
Original comment by [email protected]
on 12 Nov 2010 at 9:03
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from markdownsharp.
Good point about deciding whether to include the attribute based on some
property of the link. In fact I think that's something I would like to do for
my app too, now you mention it.
However I'd still like to do this in a single pass, just to reduce the amount
of string churning on the server. I think it'd be simpler to code too. I'll
hook up a callback mechanism that passes out the URL to some optional external
code in order to decide whether to mark the link as nofollow or not.
Let me know if you're interested in a patch or not.
Original comment by drewnoakes
on 18 Nov 2010 at 2:53
from markdownsharp.
Related Issues (20)
- title element not escaped
- Problem with auto email links
- Add link to Pagedown on the project home page. HOT 1
- Allow to set base url for relative url
- URL detection bug for URLs that contain parentheses
- f3973492a27c breaks ConfigTest.TestEncodeProblemUrlCharacters
- Enable EmailEncoding as an option HOT 1
- <code> tags are rendered inside of <pre> for code blocks
- Add option to avoid Paragraph around single element
- Support Pandoc Extensions to Markdown
- Add Strikethrough
- Have the option to add a prettify class name to the <pre> tags
- URL: Support protcol-relative URLs
- Auto-URLs are breaking with any url that has an underscore HOT 1
- Strange <p> tag placement
- Unit test error: MarkdownSharpTests.ConfigTest.TestEncodeProblemUrlCharacters HOT 1
- AutoNewlines set through MarkdownOptions replaces EOL with <br instead of <br />
- Add SkipCodeBlocks Option HOT 1
- Migrate to GitHub! HOT 1
- Sponsor an official nuget package
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 markdownsharp.