Code Monkey home page Code Monkey logo

minimad's Introduction

For a list of my main FOSS programs and libraries, or if you'd like to hire me as a Rust consultant and programmer, head up to https://dystroy.org

minimad's People

Contributors

canop avatar eldritch-blast avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

minimad's Issues

Table row parsing fails for some types of cells

Here's a failing test case for parsing table rows using Line::from

    #[test]
    fn table_row_issue() {
        assert_eq!(
            Line::from("| – | – | – |"),
            Line::new_table_row(vec![
                Composite {
                    style: CompositeStyle::Paragraph,
                    compounds: vec![Compound::raw_str("–"),],
                },
                Composite {
                    style: CompositeStyle::Paragraph,
                    compounds: vec![Compound::raw_str("–"),],
                },
                Composite {
                    style: CompositeStyle::Paragraph,
                    compounds: vec![Compound::raw_str("–"),],
                },
            ])
        );
    }

Those are n-dash characters. I couldn't reproduce with the letter 'x', but I haven't tried many other cell contents.

For some reason I have yet to determine, the fourth pipe character is not recognized as a cell boundary and is instead included in the cell contents, i.e., the parser breaks the cells as , , – |.

It gets weirder yet if you include more identical cells: | – | – | – | – | – | , it breaks it down as , , – | –, – |.

List support issues

This is not rendered as a bulleted list in termimad (via clima) (it ends up being italics or something):

  * item
  * item

while this is:

* item
* item

The - and + characters are also not supported for lists.

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.