Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Docs reflecting previous version made me a bit confused so just declaring latest made a bit more sense.  Happy to bin this if you'd rather do it yourself
  • Loading branch information
Mrashes authored Jun 27, 2024
1 parent 858d976 commit 2d1a34c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CSS, syntax highlighting, and HTML sanitization.
## Usage

```js
import { CSS, render } from "jsr:@deno/gfm@0.6";
import { CSS, render } from "jsr:@deno/gfm";

const markdown = `
# Hello, world!
Expand Down Expand Up @@ -83,7 +83,7 @@ By default syntax highlighting for JavaScript, Markdown, and HTML is included.
You can include more languages importing them:

```js
import { CSS, render } from "jsr:@deno/gfm@0.6";
import { CSS, render } from "jsr:@deno/gfm";

// Add support for TypeScript, Bash, and Rust.
import "npm:[email protected]/components/prism-typescript.js";
Expand All @@ -100,7 +100,7 @@ By default, all rendering is in blocks. There are cases where one would like to
render some inline markdown, and this is achievable using the `inline` setting:

```ts
import { render } from "jsr:@deno/gfm@0.6";
import { render } from "jsr:@deno/gfm";

const markdown = "My [Deno](https://deno.land) Blog";
const header = render(markdown, { inline: true });
Expand All @@ -113,7 +113,7 @@ By default math rendering is disabled. To enable it, you must include the
additional CSS and enable the `allowMath` setting:

```ts
import { CSS, KATEX_CSS, render } from "jsr:@deno/gfm@0.6";
import { CSS, KATEX_CSS, render } from "jsr:@deno/gfm";

const markdown = `
Block math:
Expand Down

0 comments on commit 2d1a34c

Please sign in to comment.