Coder Social home page Coder Social logo

Renumber list items about vscode-markdown HOT 11 CLOSED

yzhang-gh avatar yzhang-gh commented on July 22, 2024 1
Renumber list items

from vscode-markdown.

Comments (11)

borekb avatar borekb commented on July 22, 2024 2

I personally prefer real numbering as that makes raw markdown more readable (I not always read the rendered HTML version). This extension already has code to support natural numbering so hopefully it can be expanded to the scenario I've described above. Thanks for considering it anyway.

from vscode-markdown.

yzhang-gh avatar yzhang-gh commented on July 22, 2024

A smart solution is always using 1. as list marker. See discussion here.

from vscode-markdown.

yzhang-gh avatar yzhang-gh commented on July 22, 2024

Yes, it's a good enhancement.

But it seems that currently there isn't any available API for us to listen to the reorder event.
An alternative solution is providing a command format ordered list.

Any suggestion?

from vscode-markdown.

borekb avatar borekb commented on July 22, 2024

Explicit command is perfectly fine for me. 👍

from vscode-markdown.

yzhang-gh avatar yzhang-gh commented on July 22, 2024

Will have a try when I get some free time

from vscode-markdown.

Gruntfuggly avatar Gruntfuggly commented on July 22, 2024

I'd like auto renumbering too please. 8-)

from vscode-markdown.

Yalhu avatar Yalhu commented on July 22, 2024

On preview,I want to show the number what I used . Not renumber from 1.

// code
1. list1
2. list2 
some desc ..
3. list3
4. list4
some description ..
5. list5

Preview: the origin what I want

  1. list1
  2. list2

some description ..

  1. list3
  2. list4

some description ..

  1. list5

Preview now: I don't want

  1. list1
  2. list2

some desc ..

  1. list3
  2. list4

some description ..

  1. list5

Can this work?

from vscode-markdown.

yzhang-gh avatar yzhang-gh commented on July 22, 2024

I cannot reproduce on my PC (Windows 10, VSCode v1.22.0-insider)

image

I guess you have other MD extension installed?

from vscode-markdown.

Yalhu avatar Yalhu commented on July 22, 2024

Sorry ,my fault. I generate a localhost page displaying that via hexo server.

from vscode-markdown.

yzhang-gh avatar yzhang-gh commented on July 22, 2024

Please try v1.2.0-fix32.
Works like a charm ✨

from vscode-markdown.

willhains avatar willhains commented on July 22, 2024

@yzhang-gh 👋
I found this doesn't work in the following cases:

  • Using tab to indent between the number and the text.
  • Using another bound keyboard shortcut for moving lines up/down.

from vscode-markdown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.