Skip to content

Commit 37c2235

Browse files
committed
update chocolate and script
1 parent 386552d commit 37c2235

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

blog/food/chocolate.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ A collection of my favorite chocolate brands and my opinions about them.
4343
- not too sweet
4444
- 100% compostable packaging
4545
- fair trade
46+
- Endangered Species Chocolate almonds & sea salt
47+
- not too sweet
48+
4649

4750
## Hot Cocoa
4851

blog/gists/javascript/bookmarklets.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,12 @@ swap();
257257
- css needs can be predefined in the bookmarklet as `css`
258258
- if pasted in the console or ran as chrome snippet instead, `replace()` becomes available for use and toggled css is modifiable as an argument
259259
260+
### remove extra newlines (\n)
261+
```js
262+
[...document.querySelectorAll('code')].forEach( code => code.innerText = code.innerText.replaceAll('\n\n', '\n'))
263+
```
264+
265+
260266
## Printing Pages
261267
262268
### insert page break before selected element

0 commit comments

Comments
 (0)