Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How about altering how the Markdown would be rendered?

E.g., the previously mentioned input:

   [Check this cool similar new app out HN](http:/not.suspicious.com/nor/has/tracking)
Could be rendered as:

  <a class="link-display" href="http:/not.suspicious.com/nor/has/tracking">Check this cool similar new app out HN</a>
  <span class="link-content">[not.suspicious.com]</span>
  
  .link-display {
    /* Whatever styling you want for the link itself. */
    font-weight: bold;
  }
  
  .link-content {
    /* A more in-your-face helper that shows at least the domain. */
    font-style: italic;
    opacity: 0.5;
  }
Example: https://jsfiddle.net/upb7o0zm/


Copy-paste-friendly version:

    <a class="link-display" data-host="not.suspicious.com" href="http://not.suspicious.com/nor/has/tracking">Check this cool similar new app out HN</a>

    .link-display:after {
        content: " [" attr(data-host) "]";
    }


I'm not sure if the markdown spec mandate what the output should be, but I indeed love you idea!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: