[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-697998-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-697998-en":130,"doc-similar-697998":161},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","markdown-cheat-sheet-guide","Markdown cheat sheet - guide","","Markdown cheat sheet covering core syntax and common extensions: headings through six levels, emphasis styles (bold/italic/bold italic and underscore variants), strikethrough with GFM, unordered and ordered lists including nesting and numbering behavior, and GFM task lists. It also explains links and images (inline links, reference-style, autolinks), anchor link slug rules, custom anchors via HTML, code formatting (inline and fenced blocks with language tags), nested fences, GFM tables with alignment, blockquotes with nesting and GitHub alert callouts. Includes update date and snippet-copy guidance.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/markdown-cheat-sheet-guide/697998/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/markdown-cheat-sheet-guide/697998.png","ImageObject",300,407,{"name":42,"@type":43},"Rhys","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-19","2026-11-12",true,{"@type":52,"interactionType":53,"userInteractionCount":33},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What markdown heading levels does the cheat sheet cover?","Question",{"text":62,"@type":63},"It describes headings from H1 through H6 and notes that one H1 per document is the convention.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How do anchor links generate slugs in GitHub-flavored Markdown?",{"text":67,"@type":63},"The slug rules are lowercase everything, drop punctuation except hyphens and underscores, turn spaces into hyphens, and add suffixes like -1 and -2 for duplicate headings.",{"name":69,"@type":60,"acceptedAnswer":70},"What are the supported ways to format code blocks?",{"text":71,"@type":63},"It covers inline code using backticks and fenced code blocks using triple backticks with optional language tags for syntax highlighting, including how to nest a fence inside a fence.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},697998,1794446932,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":33,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":112,"preview_page_count":33,"preview_urls":144},687207024643,"https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","Markdown cheat sheet  \nUpdated October 15, 2026  \nEvery markdown element with the syntax on the left and the rendered result on the right. Coverscore markdown, GitHub Flavored Markdown (GFM), alerts, emoji, anchor links and mermaid diagrams. Click Copy on any block to grab the snippet.  \nHeadings  \n\n| Six levels\u003Cbr>\u003Cbr>\\# H1 — page title \\#\\# H2 — section \\#\\#\\# H3 — subsection \\#\\#\\#\\# H4\u003Cbr>\\#\\#\\#\\#\\# H5\u003Cbr>\\#\\#\\#\\#\\#\\# H6 | H1—page title\u003Cbr>H2—section\u003Cbr>H3—subsection\u003Cbr>H4\u003Cbr>H5\u003Cbr>H6 |\n| --- | --- |\n| One H1 per document is the convention. The alternative \"underline\" syntax (=== / ---) only covers H1 and H2 —the \\# form is preferred. |  |\n\nEmphasis  \n\n| Bold, italic, both |  |\n| --- | --- |\n| \u003Cbr>**bold** and *italic* and ***bold italic*** | \u003Cbr>bold and italic and bold italic\u003Cbr>|\n| Underscores work too (   bold   , _italic_), but asterisks survive mid-word: fan**tas**tic. |  |\n\n\n| Strikethrough (GFM)\u003Cbr>\u003Cbr>~~crossed out~~ | \u003Cbr>~~crossed out~~\u003Cbr>|  |\n| --- | --- | --- |\n\nLists  \n\n| Unordered\u003Cbr>\u003Cbr>-First item\u003Cbr>-Second item\u003Cbr>-Nested (indent 2 spaces)\u003Cbr>-Third item\u003Cbr>Nested list guide: indentation rules → |  First item\u003Cbr> Second item\u003Cbr> Nested (indent 2 spaces)\u003Cbr> Third item |\n| --- | --- |\n\n\n| Ordered\u003Cbr>\u003Cbr>1. Step one\u003Cbr>2. Step two\u003Cbr>1. The numbers you type don't matter —renderers count for you | 1. Step one\u003Cbr>2. Step two\u003Cbr>3. The numbers you type don't matter—renderers count for you |\n| --- | --- |\n| Numbered list guide: restarting and continuing numbers → |  |\n\n\n| Task list (GFM)\u003Cbr>\u003Cbr>- [x] Ship the feature\u003Cbr>- [ ] Write the docs\u003Cbr>- [ ] Tell someone | \u003Cbr> Ship the feature  Write the docs  Tell someone |\n| --- | --- |\n\nLinks & images  \n\n| Inline link\u003Cbr>\u003Cbr>[link text]( [https://docs-md.com](https://docs-md.com) \"optional hover title\") | \u003Cbr>link text\u003Cbr>|\n| --- | --- |\n\n\n| Image\u003Cbr>\u003Cbr>) | |\n| --- | --- |\n| An image is a link with a ! in front. Alt text matters: screen readers read it, and it shows when the image breaks. |  |\n\n\n| Autolink (GFM)\u003Cbr>\u003Cbr>Bare URLs become links: [https://docs](https://docs)[md.com](md.com) | \u003Cbr>|  |\n| --- | --- | --- |\n\n\n| Reference-style |  |\n| --- | --- |\n| \u003Cbr>Long documents read better with [named references][docs] .\u003Cbr>[docs]: [https://docs-md.com](https://docs-md.com) | Long documents read better with named references. |\n| Definitions can live anywhere in the file—conventionally at the bottom. |  |\n\nAnchor links  \nA link to a heading on the same page. The target is the heading text as a slug: lowercase, spaces to hyphens, punctuation removed.  \n\n| Link to a heading\u003Cbr>\u003Cbr>\\#\\# Getting Started\u003Cbr>Jump to [Getting Started](\\#gettingstarted) or [Step 2: Install](\\#step-2-install) . | Getting Started\u003Cbr>Jump to Getting Started or Step 2: Install. |\n| --- | --- |\n| Slug rules on GitHub: lowercase everything, drop punctuation except hyphens and underscores, turn spaces into hyphens, and add-1, -2 to duplicate headings. \"Step 2: Install\" becomes \\#step-2-install.\u003Cbr>Anchor link guide: slug rules per platform → |  |\n\n\n| Custom anchor with HTML\u003Cbr>\u003Cbr>\u003Ca id=\"custom-target\">\u003C/a>\\#\\# Any heading text\u003Cbr>[Go there](\\#custom-target)\u003Cbr>When the heading text might change, pin an explicit id with an empty \u003Ca> tag above it. Works wherever inline HTML is allowed (GitHub, GitLab, most static site generators). |  |\n| --- | --- |\n\nCode  \n\n| Inline code\u003Cbr>\u003Cbr>Run `npm install` before `npm run dev` . | Run npm install before\u003Cbr>\u003Cbr>\u003Cbr>npm run dev . |\n| --- | --- |\n\n\n| \u003Cbr>Fenced block with language\u003Cbr>\u003Cbr>```ts\u003Cbr>function greet(name: string) { return `Hello, ${name}`;\u003Cbr>}\u003Cbr>``` | \u003Cbr>\u003Cbr>\u003Cbr>function greet( name : string) { return `Hello , ${name} ` ;\u003Cbr>} |  |\n| --- | --- | --- |\n| \u003Cbr>The language tag after ``` turns on syntax highlighting. Common tags: js, ts, python, bash, json, sql, diff. |  | |\n\nFence inside a fence  \n````md  \nTo show a code block inside a code block, use more backticks on the outside:  \n```js  \nconsole .log(\"nested\");  \n```  \n````  \nTables (GFM)  \n\n| B","cbCaigwgRAKLJ6Ux","https://ap.wps.com/l/cbCaigwgRAKLJ6Ux","pdf",648172,12,"English","# Headings\n# Emphasis\n# Strikethrough (GFM)\n# Lists\n# Links & images\n## Inline link\n## Image\n## Autolink (GFM)\n## Reference-style\n# Anchor links\n# Custom anchor with HTML\n# Code\n## Inline code\n## Fenced code blocks\n## Fence inside a fence\n# Tables (GFM)\n# Blockquotes\n# Alerts (GitHub)","[{\"question\":\"What markdown heading levels does the cheat sheet cover?\",\"answer\":\"It describes headings from H1 through H6 and notes that one H1 per document is the convention.\"},{\"question\":\"How do anchor links generate slugs in GitHub-flavored Markdown?\",\"answer\":\"The slug rules are lowercase everything, drop punctuation except hyphens and underscores, turn spaces into hyphens, and add suffixes like -1 and -2 for duplicate headings.\"},{\"question\":\"What are the supported ways to format code blocks?\",\"answer\":\"It covers inline code using backticks and fenced code blocks using triple backticks with optional language tags for syntax highlighting, including how to nest a fence inside a fence.\"}]","Markdown cheat sheet - guide | PDF",[145,149,153,157],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/3492bea8fb6db5e89a2323e9155f6944.webp",983,1272,{"page_no":26,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/28621c0b630ec5419586131f781d7e7b.webp",982,1270,{"page_no":30,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/b744bdcbfca8968e062c0fc3809fe015.webp",981,1269,{"page_no":33,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/43c9a83e793b751c73e79945ef48ce43.webp",980,1268,{"list":162,"token":11},[163,170,177,184,189,195,202,208,214,220],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":168,"category_name":29,"create_tm":169},348231,"Markdown Cheatsheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911603533/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=9L8eXRO8CF914oZAoJZBsnnO7WQ%3D","markdown-cheatsheet",14,1790071893,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":175,"category_name":29,"create_tm":176},348238,"Markdown Cheat Sheet - Every common Markdown syntax in one page","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911603538/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=XYPNRLGFgCLdxloYLqFbdLfpWic%3D","markdown-cheat-sheet-every-common-markdown-syntax-in-one-page",15,1790071906,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":182,"category_name":29,"create_tm":183},348234,"Markdown Syntax - Cheat Sheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911078253/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=LQ%2FCLgyFTWN1DAHF2C3U55fZ8ao%3D","markdown-syntax-cheat-sheet",16,1790071896,{"doc_id":185,"doc_title":165,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":33,"category_name":29,"create_tm":188},685845,"https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000227815/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=V9ywGTRJ8Udi43CAi2UK4qHip2I%3D","markdown-cheatsheet-685845",1794019540,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":96,"category_name":29,"create_tm":194},685841,"Markdown Syntax Guide - Quick Reference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000227664/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=LP8AqWtE4zVgkpeRp%2FIG74NkHpo%3D","markdown-syntax-guide-quick-reference",1794019531,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":200,"category_name":29,"create_tm":201},348233,"Markdown Cheat Sheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911078256/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=%2FFvU%2FIvZYwYoiZYS0CW4vaISxw4%3D","markdown-cheat-sheet",13,1790071894,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":182,"category_name":29,"create_tm":207},348235,"Markdown Cheat Sheet for Beginners and Experts","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911078336/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=dQFs475tBQVYXNeZWS8IgoOq5zk%3D","markdown-cheat-sheet-for-beginners-and-experts",1790071903,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":33,"category_name":29,"create_tm":213},697999,"gluedown - Title Wrap Vectors in Markdown Formatting Version 1.0.9 - Package description and R functions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010155709/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=ndmFTk4MOCr6LbWsNsSbq3NqZHI%3D","gluedown-title-wrap-vectors-in-markdown-formatting-version-109-package-description-and-r-functions",1794446933,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":115,"category_name":29,"create_tm":219},678102,"Obsidian Markdown Cheat Sheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229994560354/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=6jrrMQ%2FARoWKSwm%2BDB1rFq50jeE%3D","obsidian-markdown-cheat-sheet",1793784222,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":225,"category_name":29,"create_tm":207},348236,"Introduction to Markdown - Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911078271/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=R0QpqWK7ZakRozsHE8hNCLKPydY%3D","introduction-to-markdown-guide",21]