Replies: 13 comments 23 replies
-
I can answer these rapid fire:
|
Beta Was this translation helpful? Give feedback.
-
When is Markdoc coming out of the experimental phase? |
Beta Was this translation helpful? Give feedback.
-
Markdoc has come out with a language server. It supports configuration through something called an array of JSON. in a {
"id": "project",
"path": "project/src/content",
"schema": {
"path": "project/markdoc.config.mjs",
"type": "node",
"property": "default",
"watch": true
}
} I tried it out it does not seem to work for some reason. |
Beta Was this translation helpful? Give feedback.
-
Can you tell me how extends works? |
Beta Was this translation helpful? Give feedback.
-
You need to tell people in the future that if they want to pass in the primary attribute they will need to pass The primary attribute is what you pass in after the tag name without symbols or {% abbr "Hyper Text Markup Language" %} This is how it's configured
|
Beta Was this translation helpful? Give feedback.
-
I thinking about creating a library that has lots of tag schemas that render html components. Do you want to do that? I dont mind doing that myself then passing it on to you. markdoc does not render html tags by default and provides no tags for them. |
Beta Was this translation helpful? Give feedback.
-
I created a new library that includes all HTML schemas that will be needed in Markdoc. It's called Markdoc HTML Tag Schemas. npm i markdoc-html-tag-schemas To configure it all you need to do is. import { defineMarkdocConfig,} from '@astrojs/markdoc/config';
import { markdocHTMLTagSchemas } from 'markdoc-html-tag-schemas';
export default defineMarkdocConfig({
extends: [
markdocHTMLTagSchemas()
],
});
Here is a list of all the HTML tags that are supported by this library.
|
Beta Was this translation helpful? Give feedback.
-
I'm hoping to get only two features now.
Other than that I have nothing else to ask for. I guess there is the problem with having to specify attributes along with registering the component. |
Beta Was this translation helpful? Give feedback.
-
In the future can the markdoc scaffold come with the config for the Markdoc Language Server? I tried to configure it myself and decided to quit. I know the tool is not mature but. I was 100 percent sure that I did it right. |
Beta Was this translation helpful? Give feedback.
-
Today I just found out how to get the language server to work markdoc. "path": "src/content",
"schema": {
"path": "markdoc.config.mjs",
"type": "esm",
"property": "default",
"watch": true
}, You must specify the The language server does not respect extends at all. Clone this project and you'll see what I mean. https://github.com/louiss0/dummy-markdoc-2 |
Beta Was this translation helpful? Give feedback.
-
I did the PR here |
Beta Was this translation helpful? Give feedback.
-
There is nothing much to discuss anymore. Overall I'm happy about this discussion. I think I got everything I want from all of this. |
Beta Was this translation helpful? Give feedback.
-
Body
I have tried out remark so far and have found some problems with it as listed in Issue 6829 I'm not sure if this will be the primary way of doing things going forward but I hope it is. I have the following questions.
Beta Was this translation helpful? Give feedback.
All reactions