protiumx / blogpub

Github action to publish your blog articles from Markdown to Medium or Dev.to
Apache License 2.0
30 stars 6 forks source link

Medium does not respect Title provided in markdown #16

Closed ksingh7 closed 2 years ago

ksingh7 commented 2 years ago

Hi @protiumx This is a minor issue

When we publish the blog using Markdown on both dev.to and medium.

The medium blog does not respect the title provided in the markdown. Below is my real blog post i published on medium using GHA

---
title: Increase timeout of OpenShift Web Terminal 
description: Learn how to increase the timeout of OpenShift Web Terminal from 15 minutes to any time you want.
tags: 'openshift,web,terminal'
cover_image: ./assets/cat.jpeg
canonical_url: null
published: true
---

image

protiumx commented 2 years ago

Hi @ksingh7 the title in the metadata is used only for the API payload, hence it doesn't get injected into the content of the article. it would be better if you always add the title into the article like this

# Increase timeout of OpenShift Web Terminal 
## Introduction

and avoid adding title to the metadata.

Also notice that cover_image and canonical_url are not supported by this action. I could add support in the future. Feel free to open a feature request for that :)

ksingh7 commented 2 years ago

Thanks @protiumx