Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Posts on the main page can have truncated and broken HTML #80

Open
avar opened this issue Jun 6, 2010 · 2 comments
Open

Posts on the main page can have truncated and broken HTML #80

avar opened this issue Jun 6, 2010 · 2 comments
Labels

Comments

@avar
Copy link

avar commented Jun 6, 2010

When this
post

appeared on the front page it was rendered like this in Chrome:

To install it, create a new bookmark and paste the following code into the location field (sorry, I couldn't find a way to post this as a javascript: link in this blog):

="http://gist.github.com/424499.js?file=cpan_syntaxhigh_bo…

Which was due to this broken HTML:

                        <div class="entry-body"> 

                            <p>I've just updated a syntax highlighter bookmarklet I wrote a while back so that it now supports Chrome and Safari, besides Firefox.</p> 
<p>I find it useful to syntax highlight when I peek at a module's source code in the <span class="caps">CPAN </span>website. You may find it useful too. </p> 

<p>To install it, create a new bookmark and paste the following code into the location field (sorry, I couldn't find a way to post this as a <code class="prettyprint">javascript:</code> link in this blog):</p> 

<!--defang_script style="font-size:8pt" src-->="http://gist.github.com/424499.js?file=cpan_syntaxhigh_bo…

                        </div><!-- .entry-body -->

When posts are shortened the shortener should be intelligent enough
not to kill the HTML.

@briandfoy
Copy link

I've experienced this many times. I was excited about blogs.perl.org because I'd get to include other media, such as video, in my posts. I can't tease people with that because there's too many characters in an link to put the video on the front page. :(

@ap
Copy link

ap commented Dec 29, 2022

I think this feature fixed this, no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants