Sridhar Ratnakumar
Sridhar Ratnakumar
Ambiguous note resolution works now. Now on to index routes support ...
`index.md` for folder notes are now supported: https://emanote.srid.ca/folder-note#index One more thing to do: allowing layers to be mounted at a subfolder.
Stuck here, ``` ❯ nix log /nix/store/kycb794bj34hbshdi92zfpxpx6qab3cr-all-cabal-hashes-component-pandoc-lua-engine-0.2.1.3.drv warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/kycb794bj34hbshdi92zfpxpx6qab3cr-all-cabal-hashes-component-pandoc-lua-engine-0.2.1.3.drv^*' tar:...
I don't think we should have per-language templates. Instead, [the default layer](https://github.com/srid/emanote/tree/master/emanote/default) should support translation somehow. [I added a todo to issue description to this effect] Perhaps we can have...
@brsvh You can create a Haskell type like, ```haskell newtype TranslationTable = TranslationTable { unTranslationTable :: Map Lang (Map Text Text) } -- | Parse translations.json from notebook parseTranslations ::...
> A variable may have multiple corresponding values, so how should variable bindings in the template be handled? Oh, you would choose them from `page.lang` property (falling back to the...
Aside: another case for #337 I suppose ...
One way to implement this (especially as Pandoc AST is not flexible enough) is by having `heist-extra` generate the same HTML div structure as Obsidian's publish: https://github.com/srid/heist-extra/blob/54ff970f733dd45b5509d1c4c298927b6241041b/src/Heist/Extra/Splices/Pandoc/Render.hs#L67-L69 And then style...
Actually we could just implement it as a `PandocBlockRenderer` (much like how embed wikilinks, queries, etc. are done) https://github.com/srid/emanote/blob/ea2dca29a92430572048eb5ad5f018b0e66c42bc/emanote/src/Emanote/Pandoc/Renderer/Query.hs#L25-L41
Context: https://github.com/cardano-foundation/cardano-wallet/pull/4006#issuecomment-1909953454 > > Interesting. Is there a particular set of features Emanote could have supported to obviate this change? > > The main reason for switching was actually that...