-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support exporting shortcodes with positional arguments
Add new attribute #+ATTR_SHORTCODE: to specify positional arguments for the shortcode following ":args". Example: #+attr_shortcode: :args warning #+begin_alert This is a warning! #+end_alert Above exports as (given HUGO_PAIRED_SHORTCODES is set as "%alert"): {{% alert warning %}} This is a warning! {{% /alert %}} For re-usability of Org document with ox-html, below will also result in the exact same ox-hugo export: #+attr_html: :class warning #+begin_alert This is a warning! #+end_alert Simply: #+attr_shortcode -> #+attr_html :args -> :class #119
- Loading branch information
1 parent
6bf1610
commit 74cb3c2
Showing
7 changed files
with
357 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.