{"tags":["post","Wiki"],"title":"xLog Flavored Markdown","content":":::div{style=\"max-width: 100px\"}\n![image](ipfs://bafkreibwy56ljpiukgxzhfct4eutl5rvllshcbsoaftceodmlorzkbqmgq)\n:::\n\nThis post is to explain and demonstrate the Markdown syntax supported by xLog.\n\nIf you have any questions or suggestions, feel free to submit an issue or comment.\n\n## Follows GitHub Flavored Markdown (GFM)\n\nSpecification details: https://github.github.com/gfm\n\nExamples:\n\n1. `## Heading level 2`\n\n ## Heading level 2\n\n1. `**Bold**`\n\n **Bold**\n\n1. `> Quote`\n \n > Quote\n\n1. List\n\n 1. Normal list\n\n
- list 1\n - list 2\n\n - list 1\n - list 2\n\n 1. Ordered list\n\n
1. - ordered list 1\n 1. - ordered list 2\n\n 1. ordered list 1\n 1. ordered list 2\n \n 1. Task list\n\n
- [ ] task list 1\n - [x] task list 2\n\n - [ ] task list 1\n - [x] task list 2\n\n1. Code\n\n
`code`\n\n `code`\n\n
\n ```js\n console.log(\"xLog\")\n console.log(\"is the best!\")\n ```\n\n\n ```js\n console.log(\"xLog\")\n console.log(\"is the best!\")\n ```\n\n1. Thematic break `---`\n\n ---\n\n1. Link `[link title](url)`\n\n [link title](url)\n\n1. Image `![image title](ipfs://bafkreiabgixxp63pg64moxnsydz7hewmpdkxxi3kdsa4oqv4pb6qvwnmxa)`\n\n ![image title](ipfs://bafkreiabgixxp63pg64moxnsydz7hewmpdkxxi3kdsa4oqv4pb6qvwnmxa)\n\n1. `*Italic*`\n\n *Italic*\n\n1. Autolink\n\n https://xlog.app\n\n1. `~~Strikethrough~~`\n\n ~~Strikethrough~~\n\n1. Table\n\n | foo | bar |\n | --- | --- |\n | baz | bim |\n\n## Allowed HTML Tags and Attributes\n\nSee: https://github.com/Crossbell-Box/xLog/blob/main/src/markdown/sanitize-schema.ts\n\nFor security reasons, only whitelisted HTML tags and attributes are allowed, but this is not set in stone, so if you need other tags or attributes, feel free to submit a pr or issue.\n\nExamples:\n\n```html\n\n```\n\n\n\n## Supports Generic Directives Proposal\n\nSpecification details: https://talk.commonmark.org/t/generic-directives-plugins-syntax/444\n\nExamples:\n\n1. `line1 :br line2 :i[HTML]{class=\"test\"}` => `line1
Centered Content