Code Monkey home page Code Monkey logo

Comments (5)

delucis avatar delucis commented on June 11, 2024 1

Mostly human error! 😅

We have a pipeline that pulls in some Markdown, processes with remark and a bunch of plugins, and then stores the resulting Markdown for rendering later. We were struggling with migrating some links where the search parameter syntax had changed and noticed “Oh there’s this \ in some of them after processing.” This led us to misattribute that as the cause for some link breaking (because naively copying a link like that does break) and debug to work out what was introducing the \ (assuming it to be one of our plugins, but later realising it was remark itself). You mentioned “Markdown parsers support escapes”, so that made me double check and realise this was the wrong rabbit hole and the final <a> in our rendered content was correct 😁

Anyway — appreciate your fast response. Helped get us back on track 💜

from remark.

wooorm avatar wooorm commented on June 11, 2024

Hey!

This is intentional. &, depending on what comes after it, could turn into a character reference. E.g., when copy; comes after it, it turns into something else.

breaking the link

The link is not broken. Markdown parsers support escapes.


For more info, see for example syntax-tree/mdast-util-to-markdown#53.

from remark.

github-actions avatar github-actions commented on June 11, 2024

Hi! This was closed. Team: If this was fixed, please add phase/solved. Otherwise, please add one of the no/* labels.

from remark.

delucis avatar delucis commented on June 11, 2024

Thanks for the response! My rehype pipeline is still ending up with the bad link in the rendered content, but I’ll dig a bit deeper to figure out that bit. Nope, this also wasn’t true, things are actually working as expected, we just misattributed the real cause of an error to that sneaky looking \. Apologies for the disturbance and thanks again! 🙌

from remark.

wooorm avatar wooorm commented on June 11, 2024

No worries!

Could you share the actual problem with me? I'd appreciate hearing your root cause for future strugglers!

from remark.

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.