mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-10 10:45:41 +01:00
This standardises all my markdown files to have no leading newline after the `---` that ends the frontmatter. This makes display on Gemini (in which newlines matter) much more consistent! I can't spot any errors with the regex I used here, but there may be one or two articles that change shape — hopefully I can spot them and fix them!
14 lines
221 B
Markdown
14 lines
221 B
Markdown
---
|
|
date: "2017-09-16T11:11:13Z"
|
|
tags:
|
|
- imported
|
|
- from-twitter
|
|
---
|
|
```ruby
|
|
def Hash.forever
|
|
new { |h, k| h[k] = forever }
|
|
end
|
|
|
|
Hash.forever.tap { |h| h[:no]['need'][2] = 'init' }
|
|
# => {:no=>{"need"=>{2=>"init"}}}
|
|
```
|