Comments (8)
Syntax highlighting is more a styling thing so not really something directly for this library specifically.
from blade-ui-kit.
Closing because I was being dumb.
from blade-ui-kit.
@devingray what happened? You had me puzzled there heh
from blade-ui-kit.
I used double braces {{ $x }}
instead of escaped braces {!! $x !!}
from blade-ui-kit.
Hmm, need to try that out. Might need to update the docs. Gonna re-open to look at this later.
from blade-ui-kit.
All good. I am busy updating my custom markdown converter to use this.
Would be great in the docs to add a small section on syntax highlighting with highlight js (I believe this is what you are using along side a dark theme?)
If I just put content directly in
<x-markdown flavor="github">
# Hello
```php
echo "Hello";
return true;
```
</x-markdown>
It works :)
from blade-ui-kit.
I had the same problem with this. I think it's because in the docs it says to use:
<x-markdown>{{ $markdown }}</x-markdown>
but to get it to work you have to use
<x-markdown>{!! $markdown !!}</x-markdown>
from blade-ui-kit.
This was indeed a docs issue. Sorry about that. I'll push a fix in a few.
from blade-ui-kit.
Related Issues (20)
- Alpine V3 support HOT 1
- Looking for a co-maintainer HOT 9
- Uncaught RangeError: Maximum call stack size exceeded. HOT 6
- many incompatibility with laravel 9 and alpinejs3
- Better error handling for Unsplash component
- Dramatic performance difference between blade component and blade helper HOT 1
- defaultDate property broken before mouseenter is triggered
- How do I run an AlpineJS function when a new x-color-picker color is selected?
- Info: Bootstrap classes for form components
- @ bukStyles does not load any styles - How to troubleshoot? HOT 1
- Problem with conversion to HTML
- app uses buk components instead of resources/view/components
- Carbon formatting not working at all when using local HOT 1
- How do we get the size to work properly? HOT 2
- Conflict with filament 3 styles HOT 15
- TipTap Support
- Laravel default skeleton conflict HOT 2
- Laravel 11 Support HOT 2
- window.Alpine.plugin is not a function HOT 1
- Unable to install Blade UI Kit on Laravel 11 due to dependency conflict with Carbon HOT 1
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 blade-ui-kit.