To create an external link in Markdown, write the link text in square brackets (e.g., ) followed by the URL in parentheses. Markdown syntax requires the path of the image file to be relative to the current file, while the Image component requires only the image's filename (as long as the image lives in src/assets, or the assetsPath defined in the theme options). This component uses gatsby-image to optimize and lazy load your images. An alternative that is easier to see is the tag add this tag between the two lines of text to be separated with a line break.įor a fluid image (one that adjusts its size in response to the screen size), use the Image component. To create a line break, follow a line with two spaces and then hit enter. The underscores only work when there is spacing before and after the emphasized word. Middle*of*word becomes middle ofword, but To emphasize text with bold or italics in the middle of a word, use asterisks but not underscores. To emphasize text with both boldface and italics, use three asterisks (***) or three underscores (_) before and after the text to be formatted. To mark text in boldface, add two asterisks (**) or two underscores (_) before and after the text to be formatted. To mark text in italics, add an asterisk (*) or underscore (_) before and after the text to be formatted. There is alternative syntax for and headings: Markdown The number of hashes corresponds to the level of the heading (i.e., # corresponds to a first-level heading, or the HTML tag). Headings are usually created in Markdown with a set of hash (#) characters placed before the text for the heading, with a space in between (this space is required in Gatsby). Each section gives the Markdown syntax, the HTML element it creates, and a demonstration of the element. What follows is a guide to the Markdown syntax supported by Gatsby. MDX is a combination of Markdown and JSX, and regular Markdown syntax can be used for most formatting.
0 Comments
Leave a Reply. |