-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for rtl
and ltr
shortcodes
#293
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mohnoor94 This seems good, can we have a slight change here, let the content be markdown enabled by default and pass the md=false
param to disable it ?
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
I was thinking about the same tbh. Updated 👍🏼 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice !
refer adityatelange/hugo-PaperMod#293 (comment) for usage guide and examples
refer adityatelange#293 (comment) for usage guide and examples
refer adityatelange/hugo-PaperMod#293 (comment) for usage guide and examples
This is to support
rtl
andltr
short-codes.Use Case:
You may need to insert some contents in a different direction compared to your main site direction so that these shortcodes will come in handy.
Important notes:
md
by default.md
parameter tofalse
.Examples:
This will result in
rtl
contents rendered usingmd
.This will result in a
blockquote
inrtl
.This will result in a
blockquote
inrtl
(same example above, but with positional argument instead of a named argument in the content file).The
ltr
shortcode could be used in the same way but in the context of anrtl
website.