logseq-schrodinger icon indicating copy to clipboard operation
logseq-schrodinger copied to clipboard

feat: convert numbered-list bullets

Open Tuscan-blue opened this issue 1 year ago • 0 comments

What happend?

For example, if I use the number-list type in logseq and input something:

image

image

The actual contents in the .md file which is in the publicExport.zip are:

test
logseq.order-list-type:: number

hello world
logseq.order-list-type:: number

 + hi
logseq.order-list-type:: number

 + hey
logseq.order-list-type:: number

   + yes
logseq.order-list-type:: number

   + no
logseq.order-list-type:: number

 + goodbye
logseq.order-list-type:: number

bye
logseq.order-list-type:: number

hello

not bad
logseq.order-list-type:: number

good
logseq.order-list-type:: number

👆 The list numberings are missing and logseq.order-list-type:: number are added to the contents.

What I Do?

I wrote some codes to remove logseq.order-list-type:: number and keep the list numberings.👇

  • The actual contents in the .md file which is in the publicExport.zip are:
    1. test
    
    
    1. hello world
    
    
        1. hi
    
    
        1. hey
    
    
            1. yes
    
    
            1. no
    
    
        1. goodbye
    
    
    1. bye
    
    
    hello
    
    1. not bad
    
    
    1. good
    
  • Then we can see this in Hugo: image

Tuscan-blue avatar Nov 23 '23 10:11 Tuscan-blue