Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit e3f5a61

Browse files
committed
Update README
1 parent 3238c7c commit e3f5a61

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,18 @@ GitDown::parse($markdown);
2828
GitDown::parseAndCache($markdown);
2929
```
3030

31-
Optionally, add the `@gitdown` snippet to your template's `<head>` section for GitHub markdown/code-syntax styling.
31+
Optionally, add the `@gitdown` snippet to your template's `<head>` section, and a `.markdown-body` class to a wrapper element, for GitHub markdown/code-syntax styling.
3232

3333
```html
3434
<head>
3535
[...]
3636
@gitdown
3737
</head>
38+
<body>
39+
<div class="markdown-body">
40+
{!! GitDown::parseAndCache($conent) !!}
41+
</div>
42+
</body>
3843
```
3944

4045
## Authenticating With GitHub

0 commit comments

Comments
 (0)