Skip to content

Releases: pietroppeter/nimib

v0.3.12

10 Jul 17:27
5454182
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.3.11...v0.3.12

v0.3.11

23 Mar 10:54
c7aa19f
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.3.10...v0.3.11

v0.3.10

27 Jan 11:37
27ee834
Compare
Choose a tag to compare

What's Changed

New Contributors ❀️

Full Changelog: v0.3.9...v0.3.10

v0.3.9

27 Mar 05:53
d8c1010
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.3.8...v0.3.9

v0.3.8 - Fix nim-markdown not exporting escapeTags

25 Feb 07:49
ed0775f
Compare
Choose a tag to compare

What's Changed

  • remove export escapeTag by @HugoGranstrom in #181
    • nim-markdown released a new version which doesn't export escapeTag anymore, so we remove it. Not sure why we did it to begin with tbh.

Full Changelog: v0.3.7...v0.3.8

v0.3.7 - All code shall be highlighted

23 Feb 17:14
d144ac5
Compare
Choose a tag to compare

What's Changed

  • Implement nbShow and highlight.js support for code in markdown by @HugoGranstrom in #179
    • nbShow can be used to pretty print any type which implements a toHtml proc that returns a string of HTML to be rendered.
    • Code blocks in markdown are now highlighted dynamically using highlight.js.
  • updated changelog with 0.3.6 release notes + change in changelog workflow by @pietroppeter in #176

Full Changelog: v0.3.6...v0.3.7

v0.3.6 - nim 2.0 compatibility!

09 Feb 10:59
e25ee44
Compare
Choose a tag to compare

What's Changed

  • Change toml lib + fix macro bug on devel by @HugoGranstrom in #173
    with this PR nimib is finally compatible with the upcoming 2.0. Two things needed fixing:
  • Adding devel to CI, fix #161, fix #149 by @pietroppeter in #169
    • added both stable (which will become 2.0) and devel (which is currently the 2.0 rc) to CI, also update the versions of actions we depend on

Full Changelog: v0.3.5...v0.3.6

v0.3.5

28 Jan 15:04
c7f3e95
Compare
Choose a tag to compare
  • codeAsInSource has been reworked to work better with templates and uses of nbCode in different files.
    The cases that still don't work is when code from different places are combined in a single nbCode, like here:
template foo(body: untyped) =
  nbCode:
    body # This code is from line 7
    echo "Hello world" # this code is from line 4

foo:
  echo "Goodbye world"
  • If you don't use any nbJs, now nimib won't build an empty nim file in those cases.
  • The temporary js files generated by nbJs now has unique names to allow parallel builds.

What's Changed

  • refactor codeAsInSource to not require command + fix nbJs bug fixes by @HugoGranstrom in #163

Full Changelog: v0.3.4...v0.3.5

v0.3.4

29 Nov 21:57
ad0e44b
Compare
Choose a tag to compare

What's Changed

  • add nbCodeDisplay and nbCodeAnd by @pietroppeter in #158
    nbCodeDisplay and nbCodeAnd provide an easy way to:
    • display code in nbJsFromCode and friends
    • run code both in js and c backend They are also generic templates that can be used with other templates and do not depend on any specificities of nbJsFromCode templates.

Full Changelog: v0.3.3...v0.3.4

v0.3.3

13 Nov 18:37
8ad307d
Compare
Choose a tag to compare

From changelog

  • Refactored nbJs (#148)
    • Breaking: All nbJsFromCode blocks are now inserted into the same file (Compared to previously when each block was compiled as its own file).
      So this will break any reusable components as you will get redefinition of variable errors. The solution is to use nbJsFromCodeInBlock which puts the code inside a block. Imports can't be done in there though so you must do them in a separate nbJsFromCode or nbJsFromCodeGlobal before.
    • See https://pietroppeter.github.io/nimib/interactivity.html for a more detailed guide on how to use the new API.
  • Added nimibCode template. One problem with using nbCode is that you can't show nimib code using it because it nests blocks and wrecks havoc.
    So nimibCode allows you to show nimib code but at the cost of not capturing output of the code.

What's Changed

Full Changelog: v0.3.2...v0.3.3