A PowerShell library for publishing markdown files authored in markdown to Blogger. This library exists because OpenLiveWriter isn't being actively maintained and Typora and Obsidian are awesome. The intention is that you would author your blog posts in markdown and then drop to a command-prompt to publish them to Blogger.
Note:
Currently in development. Currently tested on Windows
-
Install necessary dependencies:
choco install pandoc(Future: still need to publish to PowerShell nuget library)
Install-Module PSBlogger -
Authenticate with your Blogger account:
Initialize-BloggerThis will launch a browser and authenticate with Google.
Notes:
-
You may need to perform this command with an elevated command-prompt (Administrator) as this activity opens a temporary port listener for oauth callbacks.
-
You may be prompted that Google hasn't verified the app yet. Working on it. Click Continue for now.
-
-
List your blogs
Get-BloggerBlogs -
Set a default blog
Set-BloggerConfig -Name BlogId <blogid> -
List your posts for that blog
Get-BloggerPosts -
Publish a markdown file to your blog as draft
Publish-MarkdownBloggerPost -File .\filename.md -DraftThis will post a draft to your blog and update the markdown file with the blogger
postidand mark it aswip. -
Publish a markdown file to your blog
Publish-MarkdownBloggerPost -File .\filename.md
PSBlogger supports Google Drive for hosting your images and handles both standard markdown and Obsidian image formats.
PSBlogger can detect and process images in both formats:
- Standard Markdown:
 - Obsidian Format:
![[image.png|alt text]]
When publishing, all images are converted to standard markdown format with Google Drive URLs, ensuring compatibility across platforms.
- Add-GoogleDriveFile: Uploads a file to your Google Drive
- Add-GoogleDriveFolder: Creates a folder in your Google Drive
- Get-GoogleDriveItems: Query the contents of your Google Drive
- Set-GoogleDriveFilePermission: Modifes the permission of a file.
- Find-MarkdownImages: scans the markdown file to locate images in both standard and Obsidian formats
- Update-MarkdownImages: updates the content in the markdown file with updated urls, converting all formats to standard markdown
- Download existing posts to your machine in markdown