-
Notifications
You must be signed in to change notification settings - Fork 16
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
Support ox-hugo export backend #21
Comments
Hey @authsec, nice screenshots! Unfortunately, I'm not very familiar with ox-hugo, but from a cursoury glance it seems that ox-hugo has it's own support for special blocks: It looks like that there are CSS style definitions for the resulting HTML tags. It may be best to ask @kaushalmodi of ox-hugo to take a look. In particular, to whether ox-hugo performs any translation phase wrt special blocks; e.g., whether
For now, @authsec, an alternative to shortcodes, one thing to try is to mimic ox-hugo's nesting for block arguments via nested blocks; but this is far from ideal.
|
Hey @authsec, and @kaushalmodi, there is now a solution to this issue over at #12 (comment). Let me know if that works for your needs 😁 |
@alhassy Apologies for not replying sooner. I don't have much to comment because I am not using this package. I hope that the original poster @authsec can provide some feedback to your reply. I understand how disheartening it can be when you spend time and effort to reply to an issue and then you hear nothing from the original poster. |
Hi @alhassy/@kaushalmodi, I managed to make it work again with the following (doom) config snippet:
The interesting thing to me is, that it seems to export to latex as intended. The built-in @kaushalmodi Is it possible, that the Hugo exporter "eats" the arguments and doesn't pass them on to the derived? markdown exporter backend? If I do use the markdown exporter directly, the words are repeated 5 times, as expected. |
As I haven't looked into the internals of this package, I don't know how you are getting the "stutter" special block to work even with its default repeat count of 2. |
Thanks for the explanation, I was just wild guessing, as I found it was strange that the other exporters seem to do it. My elisp Kung-Fu is quite bad. You can get the stutter block to work, if you load OSBE and then put this in a org file and export the org file:
The example would simply repeat the word |
@kaushalmodi I just found out that if I'm exporting using Does that help you in anyway? |
I try to use
ox-hugo
as an export backend the exporter however does not recognize the parameter values of the special blocks. After a discussion on reddit theox-hugo
creator/maintainer mentioned to raise an issue here, as this seems to be something that he cannot fix on his end.Problem
When doing a LaTeX export, the
stutter
example works and repeats 5 times, however onox-hugo
export the repeat only happens 2 times, as seems to be the function default. The presumption is that the parameters of the#begin_noteblock
block are ignored byorg-special-block-extras
when exporting usingox-hugo
.Configuration
The package configuration looks like:
The
org
parts in using them look like:A screenshot of how this currently renders:
From left to right (org source, ox-hugo output using the docsy theme, LaTeX output)
The text was updated successfully, but these errors were encountered: