adn-timeline
adn-timeline copied to clipboard
Custom render function spans
I'm using a custom render function and it's great.
I was wondering if there might be an ability to turn off the spans when I refer to post.text. According to the readme, the text attribute looks like this:
text: post.html (with trimmed display urls and auto-linked mentions and hashtags)
which is great. When it renders it though, it includes some spans like so:
<p>
<a href="https://alpha.app.net/duff/post/3530726">7m</a>
<span itemscope="https://app.net/schemas/Post">
Now using the excellent adn-timeline from
<span itemprop="mention" data-mention-id="5700" data-mention-name="imathis">
<a class="adn-username" href="https://alpha.app.net/imathis">@imathis</a>
</span>
on <a href="http://duffomelia.com">duffomelia.com</a> to show app dot net posts in the sidebar.<br><br><a href="https://github.com/imathis/adn-timeline">github.com/imathis/adn-timeline</a>
</span>
</p>
I was thinking that if those spans were removed, then it would render wonderfully for me. I'm not sure if there's a better way to do it (like styling the spans somehow).
As you can see here, the reference to @imathis is out of place:
The spans are actually generated in the post.html which comes from the ADN api. The real problem here is my own foolishness in the styling of spans in the Octopress stylesheets. I'll see if I can get a patch out for Octopress to fix this. Are you on master?
I'm at master as of 3 minutes ago. Didn't realize it was so easy to update now. Those rake tasks and the docs around it are excellent.
I didn't realize ADN was giving those spans.
Certainly no rush from my end. :)