calebporzio / gitdown Goto Github PK
View Code? Open in Web Editor NEWA simple package to parse Github Flavored Markdown in PHP
A simple package to parse Github Flavored Markdown in PHP
The code that is generated for footnotes links is incorrect and causes the links to not work. The link to the footnote is generated like this:
<sup><a href="#fn-1" id="user-content-fnref-1">1</a></sup>
The footnote is like this:
<li id="user-content-fn-1">
<p>
First footnote
<a href="#fnref-1">
<g-emoji class="g-emoji" alias="leftwards_arrow_with_hook" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/21a9.png">โฉ</g-emoji>
</a>
</p>
</li>
The href
attribute of the link to the footnote does not match the target id
attribute of the footnote <li>
element. Also, the href
attribute of the return link does not match the target id
attribute of the footnote link.
If the footnote link is changed from
<sup><a href="#fn-1" id="user-content-fnref-1">1</a></sup>
to
<sup><a href="#user-content-fn-1" id="fnref-1">1</a></sup>
it works.
I have checked this directly in GitHub and the footnotes work there but not with HTML generated through GitDown.
First of all, thank you for this amazing package ๐
I'm already using it in my personal website. The process was smooth and the result is really great.
The only issue I'm having is when I try to embed tweets. You can check it here
I searched for a while but can't find anything useful. Maybe it's not even possible.
I already have the allowIframe
option set to true
.
Thank you,
David
I've updated my website from Laravel 9 to 10 after which your package is broken.
In my v9 composer.json I had version 1.3 ("calebporzio/gitdown": "^1.3") but after the update this was downgraded to "calebporzio/gitdown": "^1.1" due to the guzzlehttp/guzzle package being updated to v7 while your package requires v6 (or so it seems)
Hello,
Script tag not working when parse html.
Can you please guide what is wrong in code.
Inserted code in editor:
Output:
I don't know how enthusiastic Adam is about the prospect of updating zttp to use Guzzle 7. Since you actually only use Zttp in one isolated method and everything could very easily be done using Guzzle or even Curl instead, does it maybe make sense to drop Zttp as a dependency and just reach down a level?
I only noticed this because I was going to use this package as a shortcut on a Laravel 8 project. I could go any one of a dozen different ways to solve this problem. But I figured I'd bring this to your attention to see if you'd like to do something here. If so I'll happily send a PR ripping out Zttp and replacing it with Guzzle (requiring 6 or 7).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.