OneMore icon indicating copy to clipboard operation
OneMore copied to clipboard

Convert to Markdown should render TODOs right

Open koppor opened this issue 1 year ago • 2 comments

I have a structured text with TODOs. I think, convert to Markdown either does nothing or uses text only:

grafik

I think

  • All headings should be converted to markdown headings
  • TODOs should be converted to - [ ] in Markdown

koppor avatar Dec 17 '24 08:12 koppor

Are you using Convert Markdown, Copy as Markdown, or File/Export Markdown?

Convert Markdown converts md to OneNote, which will look similar to what you see above.

Copy as Markdown and File/Export Markdown both should convert this correctly

image

stevencohn avatar Dec 17 '24 12:12 stevencohn

I use the Export functionality:

Image

Tried today

In:

Image

Out

# 2024-12-17 - Tutorentreffen
# Vorbereitung 2024-12-15## UX  
    [ ]     - Auf ordentliches Runden achten  
    [ ]     - Bedienung sollte "intuitiv" sein  
...
    - Raumauswahl? -> Vorgegebene Räume  
    # Code  
    [ ]     - Ordner wie .idea und node_modules nicht mitversioneren  

Should be:

# 2024-12-17 - Tutorentreffen

# Vorbereitung 2024-12-15

## UX  

- [ ] Auf ordentliches Runden achten  
- [ ] Bedienung sollte "intuitiv" sein  
...
- Raumauswahl? -> Vorgegebene Räume  

# Code

- [ ] Ordner wie .idea und node_modules nicht mitversioneren  

Reasons:

  1. TODOs are rendered as - [ ] in markdown
  2. Alterntaive - [ ] - {text} is not as readable - one can omit the second -
  3. Headings should be on separate lines
  4. No indent of visually non-indented things
  5. Blanks around headings: https://github.com/DavidAnson/markdownlint/blob/main/doc/md022.md
  6. Blanks around lists: https://github.com/DavidAnson/markdownlint/blob/main/doc/md032.md

(More markdown conventions at https://github.com/DavidAnson/markdownlint?tab=readme-ov-file#rules--aliases)


The "UX" is somehow separated from the heading "Vorbereitung 2024-12-15" in the XML:

  <one:Outline selected="all" omHash="567402311740877204723275822539358589194970132671">
    <one:Position x="36.0" y="86.4000015258789" z="0" />
    <one:Size width="540.0" height="583.67138671875" />
    <one:OEChildren selected="partial">
      <one:OE selected="all" alignment="left" quickStyleIndex="1">
        <one:T selected="all"><![CDATA[Vorbereitung 2024-12-15]]></one:T>
      </one:OE>
      <one:OE selected="all" alignment="left" quickStyleIndex="2">
        <one:T selected="all"><![CDATA[]]></one:T>
      </one:OE>
      <one:OE selected="all" alignment="left" quickStyleIndex="3">
        <one:T selected="all"><![CDATA[UX]]></one:T>

koppor avatar Mar 10 '25 13:03 koppor