Changelog 1.8.1

Table of Contents


Improved export: SmartButton CSS

SmartButton styling has been totally revamped:

  • Intra-button components have dedicated CSS
  • Button height has been homogenized

Improved export: tricky alias heading depth

This was an eight hour project.

The problem
Q: How to assign the proper heading level to a (compiled) note that is (1) an alias whose descendants that are also compiled into the webpage.

A: By using a stack data type.

The steps for a given sub-post:

  1. Set my provisional heading level to my outline depth minus that of the current post (the envelope).
  2. If my outline order is that of the latest tricky alias + 1, then remove the last heading adjustment (padding) from the padding stack.
  3. If there is a padding in the stack, add it to my heading level.
  4. If this level > 6, make it 6; else, keep it as is. (The level is now set and is printed. After use …)
  5. If I am an alias, then I am the latest tricky alias. Set the next padding to my outline depth minus that of my original.
  6. Push this value onto the padding stack.

Simple, right? It took me eight hours because I was trying to find an easy solution. After multiple failed comfortable attempts, I got to work on the logic. Now it seems obvious.

Improved macros: consistent syntax

For the sake of consistency, macros that handle filenames and titles now all use the same argument order.