Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Converting the main description Yaml Block Literal to support proper Markdown #111

Closed
wants to merge 1 commit into from

Conversation

netmilk
Copy link
Collaborator

@netmilk netmilk commented Nov 28, 2024

I've converted the .info.description block to address the broken formatting of GFM fenced code block. The change makes the YAML string under the key work as a normal Markdown.

It's a simple trick: using of description: | instead of description: >-. But then the entire multi-line string needs to be rewritten/converted to omit the unnecessary newlines. I used this dirty script to do the job.

More on the YAML mult-line behavior here: https://yaml-multiline.info/

After
Screenshot 2024-11-28 at 11 23 03

Before
Screenshot 2024-11-28 at 11 01 57

@B4nan
Copy link
Member

B4nan commented Nov 29, 2024

closing as included in the new specs which is inlined in apify-docs

@B4nan B4nan closed this Nov 29, 2024
netmilk added a commit to apify/apify-docs that referenced this pull request Nov 29, 2024
This was caused by the manual edits after the migration, improper use of
YAML folded block scalar, and fixed the same way as
apify/openapi#111

**After:**

![image](https://github.com/user-attachments/assets/145eccc6-7541-48f9-8464-02bfad99321d)

**Before**
![image
(9)](https://github.com/user-attachments/assets/c9e00081-737f-4452-946a-af38df91f4db)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants