Comments (3)
tl;dr: this plugin can't render Github's extended Markdown syntax..
I think you got a little too used to Github markdown convenience;) That's extended syntax and, among other things, needs some JS to function properly. This plugin simply asks Github's markdown API for the HTML of your raw markdown files and returns that to Wordpress unaltered.
For
Currently if person uses:
- [x] Test
- [ ] Test2
with this curl
curl --location --request POST 'https://api.github.com/markdown/raw' \
--header 'Accept: application/vnd.github.v3+json' \
--header 'Content-Type: text/plain' \
--data-raw 'Currently if person uses:
- [x] Test
- [ ] Test2'
you'll get
<p>Currently if person uses:</p>
<ul>
<li>[x] Test</li>
<li>[ ] Test2</li>
</ul>
So it just returns a simple list, not even some special CSS classes one could use to catch them downstream. Compare that to the example above, i.e. how Github & your browser render it in HTML:
So it seems Github internally uses a much different renderer for Markdown than their API uses. That's a little annoying for me too, but I can live with it. It can't be changed unless you'd integrate with some markdown parsing library and I should add that we wouldn't accept a contribution like that in this repo.
from wordpress-markdown-git.
It's not a problem. I'll switch to using emoji which seems to work
Thank you for this plugin - it's really amazing and will allow me to combine markdown content of all my projects with my Wordpress abilities! Here's what your plugin did: https://evotec.xyz/hub/scripts/pswritehtml-powershell-module/
from wordpress-markdown-git.
Great workaround!:)
from wordpress-markdown-git.
Related Issues (20)
- 404 - Not Found for valid Jupyter notebook URLs HOT 13
- GitLab rate limited HOT 3
- Enable dynamic caching
- plugin does not respect dark mode HOT 4
- Small Typo on Readme. :)
- [feature request] support for gitlab wiki pages HOT 12
- WP plugin taking too long HOT 5
- Doesn't update ipynb when git is updated. HOT 7
- [Feature request] Skip a given number of lines HOT 2
- Anchor links to headers don't work HOT 1
- Gitlab local API HOT 3
- since update: error message that I reached API call limit HOT 2
- Styles are not enqueued HOT 1
- installation on PHP8.0 HOT 3
- Accessibility with Gitlab markdown flavor HOT 2
- Include a link to settings in plugin page
- Removing cache_ttl does not flush cache HOT 3
- Inline codeblocks not working correctly? HOT 2
- Deprecate this plugin HOT 5
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 wordpress-markdown-git.