Skip to content

Commit

Permalink
Merge pull request #976 from 8fold/homepage-sample
Browse files Browse the repository at this point in the history
fix: Home page examples since 2.0
  • Loading branch information
colinodell authored May 11, 2023
2 parents f71d0b5 + 09cabd5 commit 795851f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docs/2.0/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ Simply instantiate the converter and start converting some Markdown to HTML!
use League\CommonMark\CommonMarkConverter;

$converter = new CommonMarkConverter();
echo $converter->convertToHtml('# Hello World!');
echo $converter->convert('# Hello, World!')->getContent();

// <h1>Hello World!</h1>
// <h1>Hello, World!</h1>
```

<i class="fa fa-exclamation-triangle"></i>
Expand Down
4 changes: 2 additions & 2 deletions docs/2.1/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ Simply instantiate the converter and start converting some Markdown to HTML!
use League\CommonMark\CommonMarkConverter;

$converter = new CommonMarkConverter();
echo $converter->convertToHtml('# Hello World!');
echo $converter->convert('# Hello, World!')->getContent();

// <h1>Hello World!</h1>
// <h1>Hello, World!</h1>
```

<i class="fa fa-exclamation-triangle"></i>
Expand Down
4 changes: 2 additions & 2 deletions docs/2.2/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ Simply instantiate the converter and start converting some Markdown to HTML!
use League\CommonMark\CommonMarkConverter;

$converter = new CommonMarkConverter();
echo $converter->convert('# Hello World!');
echo $converter->convert('# Hello, World!')->getContent();

// <h1>Hello World!</h1>
// <h1>Hello, World!</h1>
```

<i class="fa fa-exclamation-triangle"></i>
Expand Down
4 changes: 2 additions & 2 deletions docs/2.3/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ Simply instantiate the converter and start converting some Markdown to HTML!
use League\CommonMark\CommonMarkConverter;

$converter = new CommonMarkConverter();
echo $converter->convert('# Hello World!');
echo $converter->convert('# Hello, World!')->getContent();

// <h1>Hello World!</h1>
// <h1>Hello, World!</h1>
```

<i class="fa fa-exclamation-triangle"></i>
Expand Down
4 changes: 2 additions & 2 deletions docs/2.4/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ Simply instantiate the converter and start converting some Markdown to HTML!
use League\CommonMark\CommonMarkConverter;

$converter = new CommonMarkConverter();
echo $converter->convert('# Hello World!');
echo $converter->convert('# Hello, World!')->getContent();

// <h1>Hello World!</h1>
// <h1>Hello, World!</h1>
```

<i class="fa fa-exclamation-triangle"></i>
Expand Down

0 comments on commit 795851f

Please sign in to comment.