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

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
calebporzio committed Mar 6, 2019
1 parent 3238c7c commit e3f5a61
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,18 @@ GitDown::parse($markdown);
GitDown::parseAndCache($markdown);
```

Optionally, add the `@gitdown` snippet to your template's `<head>` section for GitHub markdown/code-syntax styling.
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.

```html
<head>
[...]
@gitdown
</head>
<body>
<div class="markdown-body">
{!! GitDown::parseAndCache($conent) !!}
</div>
</body>
```

## Authenticating With GitHub
Expand Down

0 comments on commit e3f5a61

Please sign in to comment.