alanwalk / markdown-toc

MarkdownTOC(Table Of Contents) Plugin for Visual Studio Code.
MIT License
141 stars 111 forks source link

Not working on Linux #90

Open jaqmol opened 4 years ago

jaqmol commented 4 years ago

Given this example:

# Markdown TOC Demo

## Title 1

## Title 2

### Title 3

And after Markdown TOC: Insert/Update:

# Markdown TOC Demo

<!-- TOC -->autoauto- [Markdown TOC Demo](#markdown-toc-demo)auto    - [Title 1](#title-1)auto    - [Title 2](#title-2)auto        - [Title 3](#title-3)autoauto<!-- /TOC -->

## Title 1

## Title 2

### Title 3

I guess the newlines used are incompatible. Should be an easy fix as to windows now supporting compatible newlines.

hawkeye64 commented 4 years ago

Exactly what I get

<!-- TOC -->autoauto- [Made With Quasar](#made-with-quasar)auto  - [Initial Setup](#initial-setup)auto  - [Install Docker/CE (Community Edition)](#install-dockerce-community-edition)auto  - [Install Docker Compose](#install-docker-compose)auto  - [Visual Studio Code "Remote - Containers" extension](#visual-studio-code-remote---containers-extension)auto  - [Installing Hasura locally](#installing-hasura-locally)auto  - [Install Hasura CLI](#install-hasura-cli)auto  - [Migrations](#migrations)auto  - [Caddy Installation](#caddy-installation)auto  - [Run Caddy](#run-caddy)auto  - [Run Hasura](#run-hasura)auto  - [Run Backend](#run-backend)auto  - [Run Frontend](#run-frontend)auto  - [Final](#final)autoauto<!-- /TOC -->
sfsccn commented 4 years ago

Same here, MTOC 1.5.6, VSC 1.44.2 on Windows 10 using remote Ubuntu 19.10 server.

paw-lu commented 4 years ago

Same as you @hawkeye64—and I'm macOS. So this is not a platform issue.

StepanOvsyankin commented 4 years ago

this one seems to be a duplicate of #65. Workaround is in comments

paw-lu commented 4 years ago

Missed that one. Thanks @ovsyankin !

txgruppi commented 4 years ago

same here

lyuwenyu commented 4 years ago

same issue

tobive commented 3 years ago

Have anyone tried this: https://github.com/AlanWalk/markdown-toc/issues/65#issuecomment-438500104

bentolor commented 3 years ago

Have anyone tried this: #65 (comment)

Same here on Linux. @tobive The workaround (which is hard-forcing VSCode from "auto" EOL to "\n" in configuration) worked for me as workaround.