Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial: Update note markup/markdown and styling #404

Merged
merged 1 commit into from
Aug 4, 2023
Merged

Conversation

inexorabletash
Copy link
Member

@inexorabletash inexorabletash commented Jun 1, 2023

Using the note: ... markdown, Bikeshed produces nicely styled notes with a "NOTE:" prefix automagically generated. This source was not using that, so not getting the nice prefix. Fix that!

  • <aside> was used for notes, examples, and advisements, but it's not a block element. Just use <div>.
  • For notes, use NOTE: markdown where possible (single paragraphs)
  • Otherwise, add "NOTE:" manually as a span, class=marker
  • For a handful of cases where a note follows an algorithm and references variables within the algorithm, scooch the note inside the algorithm's containing div so that it is autolinked.
  • Remove a stray unbalanced </div>

See speced/bikeshed#2562 for context.


Preview | Diff

@inexorabletash
Copy link
Member Author

Hey @marcoscaceres - I know bikeshed isn't your normal jam, but maybe you could take a look at this?

(Not urgent at all.)

Using the `note: ...` markdown, Bikeshed produces nicely styled notes
with a "NOTE:" prefix automagically generated. This source was not
using that, so not getting the nice prefix. Fix that!

* `<aside>` was used for notes, examples, and advisements, but it's
  not a block element. Just use `<div>`.

* For notes, use `NOTE:` markdown where possible (single paragraphs)

* Otherwise, add "NOTE:" manually as a span, class=marker

* For a handful of cases where a note follows an algorithm and
  references variables within the algorithm, scooch the note inside
  the algorithm's containing div so that it is autolinked.

* Remove a stray unbalanced `</div>`

See speced/bikeshed#2562 for context.
@inexorabletash
Copy link
Member Author

@a-sully - could I trouble you for a review of this too? Thanks!

Copy link
Contributor

@a-sully a-sully left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Not finding any more instances of "aside" or "note:" in the source file after this patch, at least :)

@inexorabletash inexorabletash merged commit 9b68115 into main Aug 4, 2023
1 check passed
@inexorabletash
Copy link
Member Author

Thanks @a-sully !

github-actions bot added a commit that referenced this pull request Aug 4, 2023
SHA: 9b68115
Reason: push, by inexorabletash

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@inexorabletash inexorabletash deleted the notes branch December 11, 2023 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants