Giter VIP home page Giter VIP logo

Comments (11)

Maboroshy avatar Maboroshy commented on August 16, 2024 2

I've updated the script name and the description. Feel free to make a pull request if you have any ideas how to make it clearer.

from scripts.

Maboroshy avatar Maboroshy commented on August 16, 2024 1

I've updated the script. Please, test a new option.

from scripts.

Maboroshy avatar Maboroshy commented on August 16, 2024 1

Yes, I consider we have a highlighting issue with dots. It wasn't there when I implemented the first version of the script.

from scripts.

Maboroshy avatar Maboroshy commented on August 16, 2024

Could you post an example of what you want to use.

from scripts.

pihentagy avatar pihentagy commented on August 16, 2024

Could you post an example of what you want to use.

Sure. Like this: https://jekyllrb.com/docs/front-matter/
The only difference is that it is closed by 3 dashes, not 3 periods.

from scripts.

Maboroshy avatar Maboroshy commented on August 16, 2024

Sorry for delay.

The following test note already works with the script.

---
tags: test
---
# Test Note

Could you post the test note that reproduces the issue.

from scripts.

pihentagy avatar pihentagy commented on August 16, 2024

Oh, find, it works, if your yaml front matter ends with dashes.

But if you have an untagged note and you add the first tag to that note, it will create like:

---
tags: test
...
# Test Note

Yes, I know one can replace the three dots, but it also screws up highlighting in the note, so at least an option would be welcome.

thanks

from scripts.

Maboroshy avatar Maboroshy commented on August 16, 2024

Ok, I'll implement an option for dashes.

from scripts.

pihentagy avatar pihentagy commented on August 16, 2024

Works like a charm.

I'd articulate the standardness of the new option in the docs. (Could mention Epsilon notes, but the solution is more "general" now 🎉)

I like, that this way, all information is in the markdown files.

Many other markdown editors honour yaml front matter. (see https://jekyllrb.com/docs/front-matter/ for eg.)

from scripts.

Maboroshy avatar Maboroshy commented on August 16, 2024

I'm not sure about "standardness", since YAML spec says to use dots for YAML ending and dashes for separation. But I'll think about updating the docs. Thanks.

from scripts.

pihentagy avatar pihentagy commented on August 16, 2024

I'm not sure about "standardness", since YAML spec says to use dots for YAML ending and dashes for separation. But I'll think about updating the docs. Thanks.

Whoops, you are right. Then you can say widespreadness :) Then do we have a display issue with the QOwnNotes editor highlighting?

image

Marktext also displays just the three-dash version right:
image

Typora also votes for dashes:
image

from scripts.

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.