@@ -28,7 +28,7 @@ For Windows, the path (usually?) is
2828\U sers\Y ourUser\A ppData\R oaming\T eXmacs\p lugins
2929```
3030
31- You can activate a menu with Tools -> Markdown plugin.
31+ You can activate a menu with ` Tools -> Markdown plugin ` .
3232
3333## Hugo support
3434
@@ -37,8 +37,8 @@ converted from TeXmacs, including setting frontmatter values and extensions
3737like footnotes and ~~ striked through text~~ .
3838
3939Setting values for the frontmatter is suported via a dedicated macro defined
40- in ` hugo.ts ` . To use it first insert the Markdown -> Hugo package in Document
41- -> Style -> Add package or using plus sign in the focus bar.
40+ in ` hugo.ts ` . To use it first insert the ` Markdown -> Hugo ` package in
41+ ` Document -> Style -> Add package` or using the plus sign in the focus bar.
4242
4343Now you can type ` \hugo-front ` and input any number of key|value pairs as
4444arguments, one argument each. That is: type ` \hugo-front ` , then use structured
@@ -49,18 +49,27 @@ dates (insert with `\date`) are supported as values. To enter a list, input
4949
5050### Supported shortcodes
5151
52- * Figures are converted to ` {{< figure … >}} `
53- * For arbitrary shortcodes, use ` \hugo-short ` .
54- * Citations are automatically detected and converted to ` {{< cite ref >}} ` ,
55- and all of them are gathered in the frontmatter as well, for indization by
56- Hugo's taxonomy system.
57- * Probably more…
52+ Some of the texmacs markdown requires custom shortcodes and layouts. You can
53+ find them in ` extensions/hugo ` . Just copy the partials and shortcodes to your
54+ Hugo project.
55+
56+ * Figures are converted to ` {{< tmfigure … >}} ` . This is a simplified version
57+ of Hugo's ` {{<figure>}} ` , which can have ` .Inner ` content. This is required
58+ e.g. to have citations in captions or arbitrary markup.
59+ * To introduce any shortcode in a TeXmacs document, you can use the macro
60+ ` \hugo-short ` .
61+ * Citations are automatically detected and converted to
62+ ` {{< cite ref1 ref2 ... >}} ` , and all of them are gathered in the frontmatter
63+ as well, for indization by Hugo's taxonomy system. The presentation of the
64+ label itself is done using CSS. Include the partial ` ref_labels.html.html `
65+ in the document ` <head> ` for that.
66+ * Bibliography is rendered with the ` references.html.html ` template.
5867
5968# Known issues
6069
6170 * The converter can break with malformed or unexpected input, like markup
62- inside tags whose values should be strings ( although many cases are
63- “handled”)
71+ inside tags whose values should be strings, although some cases are (a bit
72+ sloppily) handled.
6473 * Error reporting is rather lacking. Run TeXmacs in a console to see stack
6574 traces and such in case you are running into problems.
6675 * No tables (yet)!
0 commit comments