Giter Club home page Giter Club logo

Comments (4)

areknawo avatar areknawo commented on August 25, 2024

Currently, the easiest way to switch formatting is with Markdown shortcuts. For headings, just add # to ###### before the text. You can learn about all the shortcuts here.

That said, I see how adding UI for that could be useful. It can be e.g. a separate button/switch next to the block (e.g. H1 to H6 indicators now) or a select in the formatting toolbar (like in Notion).

Do you have any recommendations for that?

from vrite.

jarrodhroberson avatar jarrodhroberson commented on August 25, 2024

The principle of least surprise way of doing it would be able to just click on the H1 and get the drop down like you initially do.

I have tried to figure out how to make it work and submit a pull request but not having any luck.

Thanks for the hints about the short cuts, I did not realize I could do that.

from vrite.

areknawo avatar areknawo commented on August 25, 2024

Makes sense. Originally, the "heading badges" were meant to easily distinguish between headings - especially the smaller ones (e.g. H4 - H6). They're :before elements, so making them interactive will require a very different approach.

Still, that's a good suggestion and I'll look into/experiment with it.

from vrite.

areknawo avatar areknawo commented on August 25, 2024
Screenshot 2024-02-06 at 20 18 47

v0.4 adds a new drag handle which, upon clicking, displays a menu to switch text and list node types.
For heading nodes, the HX badge is used as a drag handle and menu activator.

from vrite.

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.