Giter VIP home page Giter VIP logo

Comments (5)

jacksonh avatar jacksonh commented on June 21, 2024 2

/cc-ing @sywhb I believe this was an issue with Logseq's plugin api not being able to create the child block.

from logseq-omnivore.

yitsushi avatar yitsushi commented on June 21, 2024 1

I tried to achieve the same, I couldn't, it seems no matter what happens they will end up in the same block.

For now I just changed the ordering so it's:

{{#note.length}}{{{note}}}{{/note.length}}

> {{{text}}} [⤴️]({{{highlightUrl}}}) {{#labels}} #[[{{{name}}}]] {{/labels}}

That way my note pops out more and easier to read "my note -> reference".

from logseq-omnivore.

mbaker3 avatar mbaker3 commented on June 21, 2024

I'm, trying to accomplish the same. It seems 6ee5090 removed that behaviour and it was released as part of 1.12.5.

I can't find any explanation about why the change was made but it would be a really nice feature to bring back as an option in settings. Ideally we could dictate blocks ourselves in the templates but that seems like a much bigger ask.

from logseq-omnivore.

sywhb avatar sywhb commented on June 21, 2024

yeah, logseq does not allow us to create nested blocks when generating the content from the template

from logseq-omnivore.

mbaker3 avatar mbaker3 commented on June 21, 2024

That's fair. Can we add a third template in the settings for highlight notes that can be optionally defined?
If there is a template defined then the nested child block is created. Otherwise the nested child isn't.

It can be on the user to make sure they remove the note variable from their highlight template if they don't want to see the note duplicated.

It seems block content is less particular about the characters used than property values are. This change might also mitigate #176 🤷.

from logseq-omnivore.

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.