मुफ़्त Markdown एडिटर

लाइव HTML पूर्वावलोकन के साथ Markdown लिखें।

कोई डेटा आपके डिवाइस से नहीं जाता
Markdown इनपुट
HTML पूर्वावलोकन
0
शब्द
0
वर्ण
0
पंक्तियाँ

कैसे उपयोग करें

  1. बाएँ पैनल में Markdown टेक्स्ट टाइप या पेस्ट करें। दायाँ पैनल HTML पूर्वावलोकन लाइव दिखाता है।
  2. फ़ॉर्मेटिंग (बोल्ड, इटैलिक, शीर्षक, लिंक) जल्दी डालने के लिए टूलबार बटन का उपयोग करें।
  3. संपादक के नीचे शब्द, वर्ण और पंक्ति गिनती देखें।
  4. अपना Markdown .md फ़ाइल के रूप में डाउनलोड करें या HTML आउटपुट कॉपी करें

अक्सर पूछे जाने वाले प्रश्न

क्या यह संपादक मानक Markdown सिंटैक्स का समर्थन करता है?

हाँ। यह शीर्षक, बोल्ड, इटैलिक, लिंक, छवियाँ, कोड ब्लॉक, सूचियाँ, उद्धरण और क्षैतिज रेखाओं का समर्थन करता है।

क्या मैं अपना काम सहेज सकता हूँ?

संपादक आपके टेक्स्ट को संपादित करते समय ब्राउज़र मेमोरी में स्वचालित रूप से सहेजता है। फ़ाइल सहेजने के लिए .md डाउनलोड करें का उपयोग करें।

लिंक या छवि कैसे डालें?

टूलबार बटन का उपयोग करें। लिंक के लिए, [टेक्स्ट](url) टाइप करें। छवियों के लिए, ![alt](url) का उपयोग करें।

Markdown का संक्षिप्त इतिहास

Markdown March 2004 में John Gruber द्वारा बनाया गया था, Daring Fireball के writer, Aaron Swartz (वह polymath जिन्होंने बाद में Reddit co-found किया और RSS 1.0 spec co-author किया) के significant collaboration के साथ। Stated design goal (original syntax page में लिखा गया) था «to make it as readable as possible.» Gruber एक ऐसा plain-text format चाहते थे जो as-is publishable हो, terminal या plain-text editor में बिना किसी rendering के natural दिखे। Format ने वह formalize किया जो लोग plain-text email और Usenet posts में already करते थे: *asterisks for emphasis*, > for quoted text, paragraphs के बीच blank lines।

नाम «markup language» पर एक play है, Markdown इतना light है कि यह marking up की बजाय «marks down» करता है। वह philosophical core जो इसे HTML से distinguish करती है: HTML का source machines के लिए है, Markdown का source humans के लिए। एक .md file बिना किसी rendering के terminal में पढ़ना perfectly comfortable होना चाहिए।

Gruber के original syntax page ने कई edge cases ambiguous छोड़े, और late 2000s तक हर project जिसे Markdown parser चाहिए था उसने अपना लिखा, unspecified bits के बारे में different decisions करते हुए। Early 2010s तक same .md file Reddit, GitHub, Stack Overflow और एक Jekyll blog पर visibly differently render होती थी। 2014 में, Jeff Atwood (Stack Overflow, Discourse), John MacFarlane (Pandoc), और GitHub, Reddit और Meteor के engineers सहित एक working group ने एक rigorous spec produce किया, originally «Standard Markdown,» कहा गया, Gruber के object करने पर CommonMark rename हुआ। CommonMark human-readable prose और 600+ edge-case tests का machine-readable test suite दोनों publish करता है; current version 0.31.2 (January 2024) है। GitHub, GitLab, Reddit, Stack Overflow, Discourse और dozens of programming languages अब conformance claim करते हैं।

Common Syntax

यह syntax लगभग हर Markdown flavour में काम करती है, यह editor जो practical baseline support करता है।

आप क्या चाहते हैंइसे कैसे लिखें
Heading# H1 से ###### H6 तक
मोटा / तिरछा**bold** · *italic* · ***both***
Inline कोड`code`
कोड blockतीन backticks से fenced; syntax highlighting के लिए optional language tag
अक्रमबद्ध सूची- item (या * या +)
क्रमबद्ध सूची1. first: actual numbers आमतौर पर matter नहीं करते
Link[text](https://example.com)
Image![alt text](image.jpg): accessibility के लिए alt text ज़रूरी है
Blockquote> quoted text
क्षैतिज रेखा--- अकेली एक line पर

दो common gotchas: single newline line break नहीं बनाता: new paragraph के लिए blank line चाहिए, या paragraph के अंदर forced line break के लिए newline से पहले दो trailing spaces (या GFM में backslash)। और Markdown HTML का superset है: कोई भी inline HTML tag rendered output में pass through होता है, जो occasionally useful और occasionally security risk है।

GitHub Flavored Markdown और अन्य Flavours

GFM GitHub का CommonMark का superset है। यह tables (hyphen separator के साथ pipe-delimited rows), task list items (- [ ] unchecked, - [x] checked), strikethrough (~~text~~), automatic URL detection, और एक «disallowed raw HTML» filter जो dangerous tags strip करता है add करता है। GitHub itself भी कुछ non-spec extras render करता है, emoji shortcodes (:tada:), @mentions, #123 issue autolinks, alert callouts (> [!NOTE]), collapsible <details> sections, लेकिन ये GitHub render features हैं GFM spec के parts की बजाय।

Other flavours जो आप मिलेंगे:

Markdown कहाँ रहता है

लगभग हर जगह जहाँ developers text लिखते हैं:

Markdown एक registered IETF media type (text/markdown, RFC 7763, March 2016) भी है, variant parameter (GFM, CommonMark, MultiMarkdown, आदि) के साथ ताकि receivers जानें कि कौन सा flavour apply करना है। Common file extensions: .md अब तक सबसे popular, plus .markdown, .mdown, .mkdn, .mkd

इस Editor के Parser के बारे में एक नोट

यह page एक simplified Markdown parser use करता है जो ऊपर बताए गए common subset को cover करता है, headings, bold और italic, links, images, fenced code, lists, blockquotes, और horizontal rules। यह full CommonMark या GFM implementation नहीं है और हर edge case handle नहीं कर सकता (deeply nested lists with mixed bullets, lazy line continuation, link-reference definitions across the document)। Mission-critical CommonMark conformance के लिए, marked.js, markdown-it, या commonmark.js जैसा dedicated parser सही choice है, और untrusted Markdown की production rendering के लिए, XSS को inline HTML के through रोकने के लिए parser के output को DOMPurify जैसे sanitiser के through pipe करें।

इसे कब Use करें

अधिक प्रश्न

Single line break new line क्यों नहीं बनाता?

Design के अनुसार। Markdown single newlines को एक continuing paragraph में collapse करता है क्योंकि format plain text के रूप में natural दिखने के लिए meant है, readers rendered output को break किए बिना अपने editor में arbitrary widths पर wrap करते हैं। Paragraph के अंदर line break force करने के लिए, line को two trailing spaces के साथ end करें (original Markdown convention) या GFM में backslash। New paragraph के लिए, दोनों के बीच blank line छोड़ें।

क्या मैं Markdown के अंदर HTML use कर सकता हूं?

हां, Markdown HTML का superset है। <span>, <a>, <sub> और <sup> जैसे inline tags rendered output में pass through होते हैं, और उनके अंदर Markdown syntax अभी भी recognise होती है। Block-level HTML (<div>, <table>) को surrounding Markdown से blank lines द्वारा separated करना होता है, और Markdown block के अंदर नहीं process होती। इसे उन चीज़ों के लिए use करें जो Markdown natively express नहीं कर सकता: image dimensions (<img width="…">), keyboard chips (<kbd>), या collapsible sections (<details>)।

Tables, footnotes, और task lists के बारे में क्या?

तीनों GFM extensions हैं, original Markdown spec का हिस्सा नहीं। Tables pipe-delimited rows के साथ नीचे hyphen separator row use करती हैं; इस page का simplified parser उन्हें plain text के रूप में render कर सकता है। Footnotes ([^1] reference और [^1]: definition) GFM spec के बाहर एक GitHub render feature हैं। Task lists (- [ ] और - [x]) GFM में हैं। इनकी full coverage के लिए, अपनी file को GitHub preview जैसे CommonMark+GFM-compliant renderer में paste करें।

Images पर alt text क्यों ज़रूरी है?

क्योंकि alt text वही है जो screen readers image encounter करने पर announce करते हैं, यह visually-impaired readers के लिए principal accessibility hook है। ![image1.png](url) technically valid Markdown है लेकिन screen reader के लिए useless; ![Annual revenue chart, 2020 to 2025](url) genuinely descriptive है। Alt text skip करना या उसे filename से fill करना web content में सबसे common accessibility failures में से एक है।

क्या कुछ Server को Send होता है?

नहीं। Editor browser में Markdown को HTML में parse करता है, live preview locally update होती है, और auto-save आपके browser का localStorage use करता है: आपके device पर एक small private store। कुछ भी page नहीं छोड़ता। Editor एक बार load होने के बाद offline काम करता है।

संबंधित टूल

Markdown से HTML कन्वर्टर मुफ़्त Markdown प्रीव्यूअर ऑनलाइन Markdown तालिका जनरेटर