Markdown এ Svelte
এই ফিচারটি আপনাকে .md ফাইলে <style>, <script>, <script module>, #if, #each, #await, @html, @const, <svelte:xxx> লিখতে দেয়।
প্রাথমিক
এখানে একটি #if, #each, #await, @html, @const এর প্রাথমিক উদাহরণ
Output
Input
- 1: foo
- 2: bar
- 3: zoo
Fail
Promise Failed!
Content render with @html
Syntax এর বিধিনিষেধ
মার্কডাউন ফাইলে সর্বদা উদ্ধৃতি ব্যবহার করুন।
-
+
<script>
let count = $ state (0)
</script>
<button onclick={() => count ++}></button>
<button onclick={() => count ++}></button> svelte
একটি কাউন্টার
Output
Input
একটি কাউন্টার
md ফাইলে svelte ইম্পোর্ট
Output
Input
Counter.svelte
On this page