Giter Site home page Giter Site logo

Comments (8)

Canop avatar Canop commented on May 21, 2024

You want an option to hide tables ?

from termimad.

sevenuz avatar sevenuz commented on May 21, 2024

Yes, so that tables are printed as normal ascii. With the option limit_to_ascii(), the tables use normal | but the indention and color still changes. Alternatively, how do I print normal output in a scroll view? With print!() it changed the indention and line breaks. Thank You for the quick reply!

from termimad.

Canop avatar Canop commented on May 21, 2024

I'm sorry but I still miss your intent. Do you want to print the raw markdown, not interpreted ? What's "normal output" ? Is your question about wrapping ?

from termimad.

sevenuz avatar sevenuz commented on May 21, 2024

yes not interpreted. But I will search for another solution, maybe it makes no sense.

from termimad.

Canop avatar Canop commented on May 21, 2024

Actually, a text-view for basic text, without markdown interpretation, would be quite easy to add to termimad and would be consistent, but I never needed it so I didn't build it.

from termimad.

sevenuz avatar sevenuz commented on May 21, 2024

That would be nice, I also found

    // another one: see that the arguments aren't interpreted as markdown,
    //  which is convenient for user supplied texts
    mad_print_inline!(&skin, "**$0:** ` area = $2 ` and ` perimeter = $1 `", "Disk", "2*π*r", "π*r²");

in the inline-template example. How would I use it in a scrollview?

from termimad.

sevenuz avatar sevenuz commented on May 21, 2024

My workaround now is, that I put a blank space in front of the table. This avoids the rendering.

But now I have another problem. From an indentation of 3, the scrollview starts a new line. Why?

format!( "{:indent$} {}", "", text, indent = 3);

from termimad.

sevenuz avatar sevenuz commented on May 21, 2024

Okey, my workaround for that is

‎‎format!( "{:indent$} {}", "‎<200e>", text, indent = 3); ‎ ‎ 

The left-to-right mark (LRM) is a control character (an invisible formatting character).

Kind of a hack but it works :D

from termimad.

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.