MarkdownLivePreview icon indicating copy to clipboard operation
MarkdownLivePreview copied to clipboard

Gitlab API authentication failed. Please check your gitlab's token. HTTP status code 401.

Open ka2in opened this issue 3 years ago • 1 comments

When I use the the Markdown Preview in Browser, Sublime throws the error message indicated above.

ka2in avatar Aug 12 '22 14:08 ka2in

You need to register a personal access token to Gitlab.com to be able to use the Markdown to HTML facilities.
To do so, go to Gitlab.com, connect to your account, go to your profile, click on Access Tokens panel, create a new token with at least read_api rights & copy the newly created token.
Then, in sublime, go to Preferences -> Package Settings -> Markdown Preview -> Settings & in the right editor, add:

	"gitlab_personal_token":  "<YOUR_TOKEN>"

Then everything should work fine.

LuluDavid avatar Apr 18 '24 08:04 LuluDavid