Coder Social home page Coder Social logo

bikeshed-rs's People

Contributors

emilio avatar fiji-flo avatar whichxjy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bikeshed-rs's Issues

Escape backticks within fenced code blocks

If we process Markdown text like this:

~~~
this code block has tildes,
```
and isn't closed by backticks
```
~~~

We will get something like this:

<pre>this code block has tildes,
<code>and isn't closed by backticks</code>
</pre>

But what we expect is:

<pre>this code block has tildes,
```
and isn't closed by backticks
```
</pre>

This is a known issue in bikeshed, which is caused by handling code spans after parsing Markdown.

A test case for strong syntax fails

In tests/markdown011.bs, a test case for strong syntax fails: the text **High-light 1337! @twitter #hashtag ☃** couldn't be transformed into <strong>High-light 1337! @twitter #hashtag ☃</strong> since the regex ((?P<left>[^\\])|^)\*\*(?P<inner_text>[^\s][^*]*[^\s][^\\])\*\* couldn't match it.

But when the text is edited to **High-light 1337! @twitter #hashtag ☃[DELETE ME!]**, it could be transformed into <strong>High-light 1337! @twitter #hashtag ☃[DELETE ME!]</strong>.

Maybe it's about the charset or something.

Figure out a testing story.

We should figure out how do we want bikeshed-rs to be tested.

This probably involves:

  • Looking into how upstream bikeshed is tested. If we can come up with a way to share the tests that'd be best.

  • Decide whether we want to use regular #[test] functions, or something more like what cbindgen and bindgen use, where build.rs basically reads a tests/ folder and auto-generates the relevant cargo tests: https://github.com/eqrion/cbindgen/blob/master/build.rs

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.