Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Importing MD - truncated titles #1764

@ghnp5

Description

@ghnp5

Hey,

When using tools like onenote-md-exporter to export from OneNote, to migrate to Docmost,
unfortunately, these tools truncate the title of the pages, for the file names to be safe.

However, they do put the full title at the top of the MD files, using YAML syntax, like:

---
title: 'This is a long title'
updated: 2024-12-10T01:43:10
created: 2024-11-18T18:14:56
---

The problem is that Docmost is completely ignoring these, so I had to go fix every title (in my huge notebooks) that had been truncated, comparing 1 by 1 with my OneNotes.

What I suggest is either:

  1. take the title field from this metadata, and put it as the actual Title

or

  1. don't strip this metadata section, and simply make it plain text just like any other contents

I would prefer the point (2) above, because that way you're not simply dropping any contents that are being imported, which can also cause accidents, removing more than it should, etc...

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions