Giter Site home page Giter Site logo

Comments (6)

ZacLN avatar ZacLN commented on May 29, 2024 1

Yep, I'll check for block type before parsing

Just jmd seems good for now but if other formats also use ``` or something similar to denote blocks adding them shouldn't be a problem

from cstparser.jl.

ZacLN avatar ZacLN commented on May 29, 2024

Am I right in thinking that this would just involve parsing everything inside single and triple back quotes and treating the rest as white space?

from cstparser.jl.

davidanthoff avatar davidanthoff commented on May 29, 2024

Yes

from cstparser.jl.

ZacLN avatar ZacLN commented on May 29, 2024

Great, that's easy. Are there any other jmd specific features we'd want?

from cstparser.jl.

davidanthoff avatar davidanthoff commented on May 29, 2024

Ok, I had another look. I think there really are only two types of blocks for which we simply want to enable all the LS features: 1) code blocks and 2) inline code.

Code blocks look like this:

```julia
println("This is julia code")
```

They can also have additional config options, see here.
Inline code starts with

This is some markdown `j log(2)` with inline julia code.

So I guess we should actually only activate the LS for julia code blocks, not for everything that is in back quotes, right?

Weave supports a whole bunch of other formats as well, but I almost feel we should just support one and be done... And markdown seems the most useful?

from cstparser.jl.

ZacLN avatar ZacLN commented on May 29, 2024

branch for reference

from cstparser.jl.

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.