Skip to content

Commit

Permalink
Add shortcodes by default
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Jan 1, 2023
1 parent f899ac5 commit 1d986e2
Show file tree
Hide file tree
Showing 8 changed files with 112 additions and 60 deletions.
141 changes: 87 additions & 54 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ Commonmarker.to_html('"Hi *there*"', options: {
| `footnotes` | Enables the footnotes extension per `cmark-gfm`. | `false` |
| `description_lists` | Enables the description lists extension.. | `false` |
| `front_matter_delimiter` | Enables the front matter extension. | `""` |
| `shortcodes` | Enables the shortcodes extension. | `true` |

For more information on these options, see [the comrak documentation](https://github.com/kivikakk/comrak#usage).

Expand Down
3 changes: 2 additions & 1 deletion ext/commonmarker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ edition = "2021"

[dependencies]
magnus = "0.4"
comrak = "0.15"
# ref until `shortcodes` is released
comrak = { git = "https://github.com/kivikakk/comrak", ref = "7be2585180087bdb188b829e73e1617c5670505d", features = ["shortcodes"] }

[lib]
name = "commonmarker"
Expand Down

0 comments on commit 1d986e2

Please sign in to comment.