#47: Something well broken here, but I'm on the right path

Fragment indices are being returned instead of fragments, and it does not seem that the extension formatters are being called at all. But... config is definitely improved in the
right direction.
This commit is contained in:
Simon Brooke 2020-02-12 12:35:18 +00:00
parent b191f40d05
commit 0d686a9b63
No known key found for this signature in database
GPG key ID: A7A4F18D1D4DF987
5 changed files with 32 additions and 14 deletions

View file

@ -32,11 +32,12 @@
:default-locale "en-GB" ;; default language used for messages
:formatters ;; formatters for processing markdown
;; extensions.
{"vega" smeagol.formatting/process-vega
"vis" smeagol.formatting/process-vega
"mermaid" smeagol.extensions.mermaid/process-mermaid
"backticks" smeagol.formatting/process-backticks
"pswp" smeagol.extensions.photoswipe/process-photoswipe}
{:vega {:formatter "smeagol.extensions.vega/process-vega" }
:vis {:formatter "smeagol.extensions.vega/process-vega" }
:mermaid {:formatter "smeagol.extensions.mermaid/process-mermaid" }
:backticks {:formatter "smeagol.formatting/process-backticks" }
:pswp {:formatter "smeagol.extensions.photoswipe/process-photoswipe" }
}
:log-level :info ;; the minimum logging level; one of
;; :trace :debug :info :warn :error :fatal
:js-from :cdnjs ;; where to load JavaScript libraries

View file

@ -13,7 +13,7 @@ That's all there is to it - a sequence of image links just as you'd write them a
## The Gallery
This page holds another example Photoswipe gallery, this time using a simpler, Markdown-based specification. Processing this specification takes more work than the full syntax used in the other [Example gallery], so the gallery may be slower to load; but it's much easier to configure.
This page holds another example Photoswipe gallery, this time using a simpler, Markdown-based specification. Processing this specification takes more work than the full syntax used in the other [[Example gallery]], so the gallery may be slower to load; but it's much easier to configure.
```pswp
![Frost on a gate, Laurieston](content/uploads/g1.jpg)