Introduction | laravel-markdown-rust | Spatie       

 SPATIE  

laravel-markdown-rust
=====================

spatie.be/open-source

  [Docs](https://spatie.be/docs)  [Laravel-markdown-rust](https://spatie.be/docs/laravel-markdown-rust/v1)  Introduction

 Version   v1      

 Other versions for crawler [v1](https://spatie.be/docs/laravel-markdown-rust/v1) 

  Introduction    
- [ Introduction ](https://spatie.be/docs/laravel-markdown-rust/v1/introduction)
- [ Support us ](https://spatie.be/docs/laravel-markdown-rust/v1/support-us)
- [ Installation ](https://spatie.be/docs/laravel-markdown-rust/v1/installation-and-setup)
- [ Usage ](https://spatie.be/docs/laravel-markdown-rust/v1/usage)
- [ Extensions and front matter ](https://spatie.be/docs/laravel-markdown-rust/v1/extensions)
- [ Testing ](https://spatie.be/docs/laravel-markdown-rust/v1/testing)
- [ Changelog ](https://spatie.be/docs/laravel-markdown-rust/v1/changelog)
- [ Views and components ](https://spatie.be/docs/laravel-markdown-rust/v1/views)

  Laravel-markdown-rust 
=======================

 Render Markdown with heading anchors and highlighted code 

### Useful links

- [Repository](https://github.com/spatie/laravel-markdown-rust)
- [Discussions](https://github.com/spatie/laravel-markdown-rust/discussions)

Introduction
------------

Render Markdown with heading anchors and highlighted code

```
use spatie_markdown::MarkdownRenderer;

let html = MarkdownRenderer::new().to_html("# My title")?;
assert_eq!(html, "<h1 id=\"my-title\">My title</h1>\n");
```

The renderer uses CommonMark by default. Syntax highlighting and heading IDs are enabled. Tables, strikethrough, task lists and footnotes are available with `github_flavored(true)`.

Rendering without caching is synchronous and needs no application context. Cached rendering uses an explicit framework repository inside an application context. Rendering never executes fenced code or fetches external content.

Continue with [installation](installation-and-setup) and [usage](usage).

 A good
match?
-------------

### What we do best

- All things Laravel
- Custom frontend components
- Building APIs
- AI-powered features
- Simplifying things
- Clean solutions
- Integrating services

### Not our cup of tea

- WordPress themes
- Cutting corners
- Free mockups to win a job
- "Just execute the briefing"

 In short: we'd like to be a **substantial part** of your project.

 [ Get in touch via email ](mailto:info@spatie.be?subject=A%20good%20match%21&body=Tell%20us%20as%20much%20as%20you%20can%20about%0A-%20your%20online%20project%0A-%20your%20planning%0A-%20your%20budget%0A-%20%E2%80%A6%0A%0AAnything%20that%20helps%20us%20to%20start%20straightforward%21)
