vitorgalvao / alfred-workflows

Collection of Alfred workflows
BSD 3-Clause "New" or "Revised" License
2.44k stars 167 forks source link

MarkdownToHTML converts MD links into empty space #135

Closed chrismessina closed 3 years ago

chrismessina commented 3 years ago

Setup info

Description of issue

Given this input: [The Multiverse ](https://www.producthunt.com/posts/the-multiverse)

...the workflow replaces that text with blank space:

Here's an animation:

2021-08-31 (15 57 57) Sidekick

It appears that the problem may be that plaintext conversion was broken in the recent update that affected clipboard output? Rich text is converted successfully — but unreadable content is added to the clipboard (seen in Paste App):

image

Debugger output


[10:44:23.712] Logging Started...
[15:33:51.394] MarkdownTransform[Universal Action] Processing complete
[15:33:51.413] MarkdownTransform[Universal Action] Passing output '[The Multiverse ](https://www.producthunt.com/posts/the-multiverse)' to Run Script
[15:33:52.261] STDERR: MarkdownTransform[Run Script] override r-xr-xr-x  messina/staff for /Users/messina/Library/Application Support/Alfred/Workflow Data/com.vitorgalvao.alfred._sharedresources/bin/multimarkdown? (y/n [n]) not overwritten
[15:33:52.262] MarkdownTransform[Run Script] Processing complete
[15:33:52.263] MarkdownTransform[Run Script] Passing output '<p><a href="https://www.producthunt.com/posts/the-multiverse">The Multiverse </a></p>
' to Arg and Vars
[15:33:52.264] MarkdownTransform[Arg and Vars] Processing complete
[15:33:52.265] MarkdownTransform[Arg and Vars] Passing output '' to Run Script
[15:33:52.507] MarkdownTransform[Run Script] Processing complete
[15:33:52.508] MarkdownTransform[Run Script] Passing output 'true
' to Dispatch Key Combo
[15:33:52.509] MarkdownTransform[Dispatch Key Combo] Processing complete
[15:33:52.510] MarkdownTransform[Dispatch Key Combo] Passing output 'true
' to Run Script
[15:34:14.615] MarkdownTransform[Universal Action] Processing complete
[15:34:14.627] MarkdownTransform[Universal Action] Passing output '[The Multiverse ](https://www.producthunt.com/posts/the-multiverse)' to Run Script
[15:34:15.193] STDERR: MarkdownTransform[Run Script] override r-xr-xr-x  messina/staff for /Users/messina/Library/Application Support/Alfred/Workflow Data/com.vitorgalvao.alfred._sharedresources/bin/multimarkdown? (y/n [n]) not overwritten
[15:34:15.202] MarkdownTransform[Run Script] Processing complete
[15:34:15.203] MarkdownTransform[Run Script] Passing output '<p><a href="https://www.producthunt.com/posts/the-multiverse">The Multiverse </a></p>
' to Arg and Vars
[15:34:15.204] MarkdownTransform[Arg and Vars] Processing complete
[15:34:15.205] MarkdownTransform[Arg and Vars] Passing output '' to Run Script
[15:34:15.302] MarkdownTransform[Run Script] Processing complete
[15:34:15.313] MarkdownTransform[Run Script] Passing output 'true
' to Dispatch Key Combo
[15:34:15.314] MarkdownTransform[Dispatch Key Combo] Processing complete
[15:34:15.315] MarkdownTransform[Dispatch Key Combo] Passing output 'true
' to Run Script```
vitorgalvao commented 3 years ago

Missed this issue when it was first opened; just noticed it.

This has been fixed in the latest version, thank you for the bug report.