Giter Site home page Giter Site logo

Replace the shortcode name about ox-hugo HOT 4 OPEN

GinShio avatar GinShio commented on June 14, 2024
Replace the shortcode name

from ox-hugo.

Comments (4)

kaushalmodi avatar kaushalmodi commented on June 14, 2024

Hello, I don't understand. Why not write your Org code as:

#+begin_shortcode
Something
#+end_shortcode

from ox-hugo.

GinShio avatar GinShio commented on June 14, 2024

sry, I configurate the info / warning / error block. shortcode has similar functionality, named admonition. So I don't want to use shortcode name.

admonition uses arguments to differentiate functionality

example org-mode

#+replace: info>admonition warning>admonition

#+attr_shortcode: info
#+begin_info
Info Message
#+end_info
#+attr_shortcode: warning
#+begin_warning
Warning Message
#+end_warning

example markdown

{{< admonition info >}}
Info Message
{{< /admonition >}}
{{< admonition warning >}}
Warning Message
{{< /admonition >}}

from ox-hugo.

kaushalmodi avatar kaushalmodi commented on June 14, 2024

Adding this feature is very low on my priority list. I need to first get around the Github Actions CI failures for this repo after Org updated to 9.6.

Being very busy with work, I won't have time to work on this.

May I suggest that you leverage any of the Org filter hooks or use the Emacs advice system to customize the org-hugo-special-block function?

from ox-hugo.

GinShio avatar GinShio commented on June 14, 2024

Okay, thanks very muck. take your time.

from ox-hugo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.