markdown-toc icon indicating copy to clipboard operation
markdown-toc copied to clipboard

Not working on Linux

Open jaqmol opened this issue 5 years ago • 9 comments
trafficstars

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.

jaqmol avatar Apr 19 '20 12:04 jaqmol

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 -->

hawkeye64 avatar Apr 19 '20 12:04 hawkeye64

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

sfsccn avatar Apr 20 '20 13:04 sfsccn

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

paw-lu avatar May 04 '20 00:05 paw-lu

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

StepanOvsyankin avatar May 07 '20 19:05 StepanOvsyankin

Missed that one. Thanks @ovsyankin !

paw-lu avatar May 07 '20 19:05 paw-lu

same here

txgruppi avatar May 13 '20 19:05 txgruppi

same issue

lyuwenyu avatar May 31 '20 02:05 lyuwenyu

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

tobive avatar Sep 01 '20 09:09 tobive

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.

bentolor avatar Jan 25 '21 09:01 bentolor