Git Product home page Git Product logo

Comments (5)

chrisjsewell avatar chrisjsewell commented on May 23, 2024

Yeh the ‘Document’ which is the normal entry point for parsing, adds new lines: https://github.com/ExecutableBookProject/MyST-Parser/blob/9d27deeda9bd3418bfabcf064f1a9b4a066f6912/myst_parser/block_tokens.py#L89

from myst-parser.

chrisjsewell avatar chrisjsewell commented on May 23, 2024

I guess it’s even generally assumed that tokenize will be called through this.

from myst-parser.

choldgraf avatar choldgraf commented on May 23, 2024

good to know - in this case we are explicitly not using Document, so I'll just add the newlines manually if the string doesn't end with one

from myst-parser.

choldgraf avatar choldgraf commented on May 23, 2024

Shall I close this as expected behavior?

from myst-parser.

chrisjsewell avatar chrisjsewell commented on May 23, 2024

Nah not just yet (see comment in mentioned issue)

from myst-parser.

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.