Skip to content

Commit

Permalink
Spec: Fix algorithm declarations (#147)
Browse files Browse the repository at this point in the history
The Bikeshed Documentation (dated 8 March 2024) says, "Algorithms can be
explicitly indicated in your markup by putting the algorithm attribute
on a container element or a heading" [1].

Through trial and error, I discovered that algorithm-specific markup is
not generated when you write <dfn algorithm>. Instead, the <dfn> tag
must be wrapped in something like <div algorithm>.

This change has at least two positive results:

1. Local variables are no longer declared in the global scope!
2. We can now click on local variables and they are highlighted in
   pretty colors.

[1]: https://speced.github.io/bikeshed/#var-and-algorithms
  • Loading branch information
dmcardle authored Aug 19, 2024
1 parent 94f3f55 commit 80fbc0f
Showing 1 changed file with 120 additions and 23 deletions.
Loading

0 comments on commit 80fbc0f

Please sign in to comment.