Skip to content

Commit

Permalink
Add test case for #377
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushalmodi committed Jan 4, 2022
1 parent 25544bd commit e2bc6c4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/site/content-org/all-posts.org
Original file line number Diff line number Diff line change
Expand Up @@ -4535,6 +4535,14 @@ default Special Blocks.

This will export as [[/posts/special-blocks][Special Blocks]] --- either wrapped with =<div>=
tags or HTML5-recognized tags.

{{{oxhugoissue(377)}}}

#+begin_export hugo
{{< katex display >}}
E = -J \sum\_{i=1}^N s\_i s\_{i+1}
{{< /katex >}}
#+end_export
*** Paired shortcodes using special blocks (Positional Arguments) :positional:arguments:
:PROPERTIES:
:EXPORT_FILE_NAME: paired-shortcodes-special-blocks-positional-arguments
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,9 @@ default Special Blocks.

This will export as [Special Blocks](/posts/special-blocks) --- either wrapped with `<div>`
tags or HTML5-recognized tags.

`ox-hugo` Issue #[377](https://github.com/kaushalmodi/ox-hugo/issues/377)

{{< katex display >}}
E = -J \sum\_{i=1}^N s\_i s\_{i+1}
{{< /katex >}}
9 changes: 9 additions & 0 deletions test/site/layouts/shortcodes/katex.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<div class="katex">
<em style="color: red;">
Dummy KaTeX shortcode for a test; just prints the contents
in a <code>pre</code> block.
</em>
<pre>
{{ .Inner }}
</pre>
</div>

0 comments on commit e2bc6c4

Please sign in to comment.