Ability to customize markdown Syntax (for things like '-' vs '*') #4376
Replies: 3 comments
-
@Boxersteavee When on the client (in the browser) markdown is stored as an "AST" in the AST, we only store that an item is a list item, and when it is saved to the file, it looks like we use the * character. I don't think we store the original character that was used, only the fact that it is a list item. This is true even when using raw mode. The flow is something like this: Markdown raw mode -> AST (we lose info on what character was used, only the fact that it was a list item) -> sent to server -> Back to a markdown string (Converts list item to We currently don't store what the original character was, so we currently have no way to know on the backend that a I think the solution here would be to let the user choose the character that is used for all list items. |
Beta Was this translation helpful? Give feedback.
-
Yes, I think something like that would be similar. Such as allowing the user to actually write raw markdown and have that section saved exactly as it was when the user input the text. |
Beta Was this translation helpful? Give feedback.
-
For this to work, we'd likely need this to be a project-level config. I'm going to convert this to a feature request and move it over to the TinaCMS discussions |
Beta Was this translation helpful? Give feedback.
-
Describe the issue that you're seeing. Any Loom videos or screenshots usually help a lot!
I'm using Astro, and have a template file for each of my pages. When making a new post, using the default values I have configured, I put in a few tags using the "raw markdown" button, and typed them as such
Because of the default value, that should result in the following in the markdown file
but instead, i got
This is a problem because my configuration recognises the dashes as different list items, and I would expect the raw markdown button to copy exactly what I type into the file, but it didn't.
Reproduction
https://github.com/Boxersteavee/website
Steps to reproduce
System Info
Validations
Beta Was this translation helpful? Give feedback.
All reactions