Giter VIP home page Giter VIP logo

Comments (6)

jurgenvinju avatar jurgenvinju commented on May 18, 2024

+1 thanks, and now I know what the problem was, so that is good too ;-)

from markdown-here.

benbacardi avatar benbacardi commented on May 18, 2024

What was the fix for this? It still happens for me - would be nice if there was some kind of notification to warn me I'm in plain text mode?

from markdown-here.

slhck avatar slhck commented on May 18, 2024

There was no fix, really. From what I conclude it's virtually impossible to detect whether you're in plain-text mode or not. So there's no way to warn you before sending.

from markdown-here.

benbacardi avatar benbacardi commented on May 18, 2024

Oh that's a shame. No way to do something crazy like searching for the words 'Plain Text' that appear when you're in plain text mode?

from markdown-here.

adam-p avatar adam-p commented on May 18, 2024

If someone could help figure out a way to detect this, that would be great. I spent some time a while ago trying to figure it out, with no success.

If I remember correctly, the menu item that says "Plain text mode" and the checkbox beside it aren't actually added to the DOM until the little triangle button (menu pop-up) is clicked. So... simulate a click on that button and then look at the contents of the menu, and then simulate dismissing the menu? UGH.

The mode flag is certainly stored in the page JS somewhere, and I hunted through the minified nightmare for a while, but couldn't figure it out.

from markdown-here.

Peeja avatar Peeja commented on May 18, 2024

What about a slightly different approach: simulate the click, look for the checkmark next to "Plain text mode", and if it's there, turn it off for you. If I'm using Markdown Here, I'd actually like to be switched out of plain text mode.

There precedent in the UI: using the text formatting tools while in plain text mode switches you to rich text mode.

from markdown-here.

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.