RFC: MDX comment syntax
See original GitHub issueAs part of #1039 comment syntax currently only supports JS comment expressions:
# Hello, world!
{/* I am a comment */}
This syntax is nice because it feels more JSX-y than HTML comments. However, it comes at a cost of interoperability with Markdown (which uses HTML comments).
I’m inclined to think ensuring that we also support HTML comments (despite it being a bit precarious to have multiple syntaxes) is worth it so that your average Markdown/README file works with MDX out of the box.
# Hello, world!
{/* I'm a comment */}
<!-- I'm a comment, too! -->
Anyone have any thoughts or opinions here?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:17
- Comments:14 (9 by maintainers)
Top Results From Across the Web
Comments (MDX Syntax) - SQL Server - Microsoft Learn
Comments are non-executing text strings in program code. (Comments are also known as remarks). You can use comments to document code, or ...
Read more >Comments (MDX) | InterSystems IRIS Data Platform 2022.2
Comments - This section discusses comments in InterSystems MDX queries and in stand-alone MDX expressions used within model definitions.
Read more >MDX Parser doesn't work - RFC check of MDX - SAP Community
I am getting this error after the New NetWeaver Installation and Try to perform RFC test of MDX rfc under TCP connections. Add...
Read more >MDX Comments - Oracle Help Center
MDX supports inline comments beginning with two hyphens. Beginning with two hyphens, the rest of the line is ignored by the MDX parser....
Read more >MicroStrategy MDX Cube Reporting Guide
and properties data. For more information on MDX syntax, visit ... and server components of the SAP system that use the SAP protocols...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I agree
I was also surprised by this and it posed a real barrier to adopting MDX for me (I have many existing markdown files with comments that I wanted to migrate to MDX and could not). So I wrote a plugin:
https://github.com/leebyron/remark-comment
I think I have an acceptable navigation of the whole “JSX is not HTML” issue:
I’d love to see this behavior built into MDX proper, but for now am working well, albeit with a more complex config, with this plugin.