Skip to content

Commit

Permalink
Merge pull request #12 from yodatak/patch-1
Browse files Browse the repository at this point in the history
Update exemple to make no cors error
  • Loading branch information
murilo-cunha authored May 7, 2024
2 parents dfbcc12 + 381f741 commit c4b337b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Or add it in your `package.json` file:
```md
# Example

<Asciinema src="/casts/yourcast.cast" />
<Asciinema src="casts/yourcast.cast" />
```

The parameter `src` will look for static assets from the [`public` directory](https://sli.dev/custom/directory-structure.html#public). In this example, the file is be located at `your-project-root/public/casts/yourcast.cast`.
Expand All @@ -96,7 +96,7 @@ All the[ `asciinema-player`'s options](https://github.com/asciinema/asciinema-pl
```md
# Example

<Asciinema src="/casts/yourcast.cast" :playerProps="{speed: 2, rows: 23}"/>
<Asciinema src="casts/yourcast.cast" :playerProps="{speed: 2, rows: 23}"/>
```

### Base paths
Expand Down Expand Up @@ -130,4 +130,4 @@ There are a couple of issues already identified
- Player placeholder is resized after playing cast - [#1](https://github.com/murilo-cunha/slidev-addon-asciinema/issues/1)
- Video's progress does not move in the same place where click happens - [#5](https://github.com/murilo-cunha/slidev-addon-asciinema/issues/5)

Would you like to contribute? Leave a PR! 🚀
Would you like to contribute? Leave a PR! 🚀

0 comments on commit c4b337b

Please sign in to comment.