CINXE.COM

Parsoid - MediaWiki

<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-disabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Parsoid - MediaWiki</title> <script>(function(){var className="client-js vector-feature-language-in-header-disabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )mediawikiwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""], "wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"efdc5413-b775-4575-a80e-ac976a229d56","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"Parsoid","wgTitle":"Parsoid","wgCurRevisionId":6730326,"wgRevisionId":6730326,"wgArticleId":36931,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["WMF Projects 2011q4","WMF Projects 2012q1","WMF Projects 2012q2","WMF Projects 2012q3","WMF Projects 2012q4","WMF Projects 2013q1","WMF Projects 2013q2","WMF Projects 2013q3","WMF Projects 2013q4","WMF Projects 2014q1","WMF Projects 2014q2","WMF Projects 2014q3","WMF Projects 2014q4","WMF Projects 2015q1","WMF Projects 2015q2","WMF Projects 2015q3","WMF Projects 2015q4","WMF Projects 2016q1","WMF Projects 2016q2","WMF Projects 2016q3","WMF Projects 2016q4", "WMF Projects 2017q1","WMF Projects 2017q2","WMF Projects 2017q3","WMF Projects 2017q4","WMF Projects 2018q1","WMF Projects 2018q2","WMF Projects 2018q3","WMF Projects 2018q4","WMF Projects 2019q1","WMF Projects 2019q2","WMF Projects 2019q3","WMF Projects 2019q4","WMF Projects 2020q1","WMF Projects 2020q2","WMF Projects 2020q3","WMF Projects 2020q4","WMF Projects 2021q1","WMF Projects 2021q2","WMF Projects 2021q3","WMF Projects 2021q4","WMF Projects 2022q1","WMF Projects 2022q2","WMF Projects 2022q3","WMF Projects 2022q4","WMF Projects 2023q1","WMF Projects 2023q2","WMF Projects 2023q3","WMF Projects 2023q4","WMF Projects 2024q1","WMF Projects 2024q2","WMF Projects 2024q3","WMF Projects 2024q4","WMF Projects","MediaWiki development","Parser","Parsoid","Wikitext","Development notes","Used on Wikimedia","VisualEditor","Libraries"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Parsoid","wgRelevantArticleId":36931, "wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"mediawiki","wgCiteReferencePreviewsActive":true,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":30000,"wgTranslatePageTranslation":"source","wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgDiscussionToolsFeaturesEnabled":{"replytool":true,"newtopictool":true,"sourcemodetoolbar":true,"topicsubscription":false,"autotopicsub":false,"visualenhancements":false,"visualenhancements_reply":false,"visualenhancements_pageframe":false},"wgDiscussionToolsFallbackEditMode":"visual","wgULSPosition":"personal","wgULSisCompactLinksEnabled":true,"wgVector2022LanguageInHeader": false,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q21198544","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"]};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.translate.tag.languages":"ready","ext.pygments":"ready","ext.discussionTools.init.styles":"ready","oojs-ui-core.styles":"ready","oojs-ui.styles.indicators":"ready","mediawiki.widgets.styles":"ready","oojs-ui-core.icons":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","ext.translate.edit.documentation.styles":"ready","ext.translate":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.pt":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.pygments.view", "site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.translate.pagetranslation.uls","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.discussionTools.init","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.compactlinks","ext.uls.interface","wikibase.client.vector-2022","ext.checkUser.clientHints","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=ext.discussionTools.init.styles%7Cext.pygments%2Ctranslate%2CwikimediaBadges%7Cext.translate.edit.documentation.styles%7Cext.translate.tag.languages%7Cext.uls.pt%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.indicators%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=en&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.5"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/2/2e/Parsoid_HTML-RDFa_content_model.svg/1200px-Parsoid_HTML-RDFa_content_model.svg.png"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="848"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/2/2e/Parsoid_HTML-RDFa_content_model.svg/800px-Parsoid_HTML-RDFa_content_model.svg.png"> <meta property="og:image:width" content="800"> <meta property="og:image:height" content="566"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/2/2e/Parsoid_HTML-RDFa_content_model.svg/640px-Parsoid_HTML-RDFa_content_model.svg.png"> <meta property="og:image:width" content="640"> <meta property="og:image:height" content="453"> <meta name="viewport" content="width=1120"> <meta property="og:site_name" content="MediaWiki"> <meta property="og:title" content="Parsoid - MediaWiki"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//m.mediawiki.org/wiki/Parsoid"> <link rel="alternate" type="application/x-wiki" title="Edit" href="/w/index.php?title=Parsoid&amp;action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/mediawiki.png"> <link rel="icon" href="/static/favicon/mediawiki.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="MediaWiki (en)"> <link rel="EditURI" type="application/rsd+xml" href="//www.mediawiki.org/w/api.php?action=rsd"> <link rel="canonical" href="https://www.mediawiki.org/wiki/Parsoid"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"> <link rel="alternate" type="application/atom+xml" title="MediaWiki Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="ext-discussiontools-replytool-enabled ext-discussiontools-newtopictool-enabled ext-discussiontools-sourcemodetoolbar-enabled skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-Parsoid rootpage-Parsoid skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/MediaWiki" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-mw-download" class="mw-list-item"><a href="/wiki/Download"><span>Get MediaWiki</span></a></li><li id="n-mw-extensions" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Category:Extensions"><span>Get extensions</span></a></li><li id="n-blog-text" class="mw-list-item"><a href="https://techblog.wikimedia.org/"><span>Tech blog</span></a></li><li id="n-mw-contribute" class="mw-list-item"><a href="/wiki/Special:MyLanguage/How_to_contribute"><span>Contribute</span></a></li> </ul> </div> </div> <div id="p-support" class="vector-menu mw-portlet mw-portlet-support" > <div class="vector-menu-heading"> Support </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Help:Contents" title="The place to find out"><span>User help</span></a></li><li id="n-mw-faq" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Manual:FAQ"><span>FAQ</span></a></li><li id="n-mw-manual" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Manual:Contents"><span>Technical manual</span></a></li><li id="n-mw-supportdesk" class="mw-list-item"><a href="/wiki/Project:Support_desk"><span>Support desk</span></a></li><li id="n-mw-communication" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Communication"><span>Communication</span></a></li> </ul> </div> </div> <div id="p-development" class="vector-menu mw-portlet mw-portlet-development" > <div class="vector-menu-heading"> Development </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mw-developerportal" class="mw-list-item"><a href="https://developer.wikimedia.org/"><span>Developer portal</span></a></li><li id="n-svn-statistics" class="mw-list-item"><a href="/wiki/Development_statistics"><span>Code statistics</span></a></li> </ul> </div> </div> <div id="p-mediawiki.org" class="vector-menu mw-portlet mw-portlet-mediawiki_org" > <div class="vector-menu-heading"> mediawiki.org </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-portal" class="mw-list-item"><a href="/wiki/Project:Help" title="About the project, what you can do, where to find things"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-mw-translate" class="mw-list-item"><a href="/wiki/Special:LanguageStats"><span>Translate content</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Load a random page [x]" accesskey="x"><span>Random page</span></a></li><li id="n-mw-discussion" class="mw-list-item"><a href="/wiki/Project:Village_Pump"><span>Village pump</span></a></li><li id="n-Sandboxlink-portlet-label" class="mw-list-item"><a href="/wiki/Project:Sandbox"><span>Sandbox</span></a></li> </ul> </div> </div> <div id="p-lang" class="vector-menu mw-portlet mw-portlet-lang" > <div class="vector-menu-heading"> In other languages </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-add wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q21198544#sitelinks-wikipedia" title="Add interlanguage links" class="wbc-editpage">Add links</a></span></div> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/MediaWiki" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/mediawikiwiki.svg" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="MediaWiki" src="/static/images/mobile/copyright/mediawikiwiki-wordmark.svg" style="width: 7.5em; height: 1.125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search MediaWiki [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search MediaWiki" aria-label="Search MediaWiki" autocapitalize="sentences" title="Search MediaWiki [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-uls" class="mw-list-item active user-links-collapsible-item"><a data-mw="interface" href="#" class="uls-trigger cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet"><span class="vector-icon mw-ui-icon-wikimedia-language mw-ui-icon-wikimedia-wikimedia-language"></span> <span>English</span></a> </li> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page&#039;s font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/?wmf_source=donate&amp;wmf_medium=sidebar&amp;wmf_campaign=www.mediawiki.org&amp;uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&amp;returnto=Parsoid" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&amp;returnto=Parsoid" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="More options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/?wmf_source=donate&amp;wmf_medium=sidebar&amp;wmf_campaign=www.mediawiki.org&amp;uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&amp;returnto=Parsoid" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&amp;returnto=Parsoid" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">Beginning</div> </a> </li> <li id="toc-Technical_details" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Technical_details"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Technical details</span> </div> </a> <ul id="toc-Technical_details-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Usage" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Usage"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Usage</span> </div> </a> <ul id="toc-Usage-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Installation" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Installation"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Installation</span> </div> </a> <ul id="toc-Installation-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Development" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Development"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Development</span> </div> </a> <button aria-controls="toc-Development-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Development subsection</span> </button> <ul id="toc-Development-sublist" class="vector-toc-list"> <li id="toc-Linking_a_developer_checkout_of_Parsoid" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Linking_a_developer_checkout_of_Parsoid"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.1</span> <span>Linking a developer checkout of Parsoid</span> </div> </a> <ul id="toc-Linking_a_developer_checkout_of_Parsoid-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Running_the_tests" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Running_the_tests"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.2</span> <span>Running the tests</span> </div> </a> <ul id="toc-Running_the_tests-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Converting_simple_wikitext" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Converting_simple_wikitext"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.3</span> <span>Converting simple wikitext</span> </div> </a> <ul id="toc-Converting_simple_wikitext-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Debugging_Parsoid_(for_developers)" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Debugging_Parsoid_(for_developers)"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.4</span> <span>Debugging Parsoid (for developers)</span> </div> </a> <ul id="toc-Debugging_Parsoid_(for_developers)-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Continuous_Integration" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Continuous_Integration"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>Continuous Integration</span> </div> </a> <ul id="toc-Continuous_Integration-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Release_build" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Release_build"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>Release build</span> </div> </a> <ul id="toc-Release_build-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Technical_documents" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Technical_documents"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>Technical documents</span> </div> </a> <button aria-controls="toc-Technical_documents-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Technical documents subsection</span> </button> <ul id="toc-Technical_documents-sublist" class="vector-toc-list"> <li id="toc-Links_for_Parsoid_developers" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Links_for_Parsoid_developers"> <div class="vector-toc-text"> <span class="vector-toc-numb">7.1</span> <span>Links for Parsoid developers</span> </div> </a> <ul id="toc-Links_for_Parsoid_developers-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Links_for_Parsoid_deployers_(to_the_Wikimedia_cluster)" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Links_for_Parsoid_deployers_(to_the_Wikimedia_cluster)"> <div class="vector-toc-text"> <span class="vector-toc-numb">7.2</span> <span>Links for Parsoid deployers (to the Wikimedia cluster)</span> </div> </a> <ul id="toc-Links_for_Parsoid_deployers_(to_the_Wikimedia_cluster)-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-See_also" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#See_also"> <div class="vector-toc-text"> <span class="vector-toc-numb">8</span> <span>See also</span> </div> </a> <ul id="toc-See_also-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-External_links" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#External_links"> <div class="vector-toc-text"> <span class="vector-toc-numb">9</span> <span>External links</span> </div> </a> <ul id="toc-External_links-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Contact" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Contact"> <div class="vector-toc-text"> <span class="vector-toc-numb">10</span> <span>Contact</span> </div> </a> <ul id="toc-Contact-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">Parsoid</span></h1> <div class="mw-indicators"> <div id="mw-indicator-phabricator-project" class="mw-indicator"><div class="mw-parser-output"><div class="mw-parser-output"><style data-mw-deduplicate="TemplateStyles:r6605561">.mw-parser-output .tpl-badge{background-color:var(--background-color-progressive-subtle,#eaf3ff);color:var(--color-base,#202122);border-radius:10px;display:inline-block;font-size:90%;padding:5px 8px}</style><div class="tpl-badge"><a href="/wiki/Special:MyLanguage/Phabricator" title="Special:MyLanguage/Phabricator">Issue tracker</a>: <a href="https://phabricator.wikimedia.org/tag/parsoid/" class="extiw" title="phab:tag/parsoid/"><b>#parsoid</b></a></div></div></div></div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Parsoid" title="View the content page [c]" accesskey="c"><span>Page</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Talk:Parsoid" rel="discussion" title="Discussion about the content page [t]" accesskey="t"><span>Discussion</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Parsoid"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Parsoid&amp;action=edit" title="Edit the source code of this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Parsoid&amp;action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Parsoid"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Parsoid&amp;action=edit" title="Edit the source code of this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Parsoid&amp;action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Parsoid" title="A list of all wiki pages that link here [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Parsoid" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="//commons.wikimedia.org/wiki/Special:UploadWizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Parsoid&amp;oldid=6730326" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Parsoid&amp;action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Special:CiteThisPage&amp;page=Parsoid&amp;id=6730326&amp;wpFormIdentifier=titleform" title="Information on how to cite this page"><span>Cite this page</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&amp;url=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FParsoid"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&amp;url=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FParsoid"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-create_a_book" class="mw-list-item"><a href="/w/index.php?title=Special:Book&amp;bookcmd=book_creator&amp;referer=Parsoid"><span>Create a book</span></a></li><li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&amp;page=Parsoid&amp;action=show-download-screen"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Parsoid&amp;printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q21198544" title="Link to connected data repository item [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div id="siteSub" class="noprint">From mediawiki.org</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-pt-translate-header noprint nomobile" dir="ltr" lang="en"><a href="/w/index.php?title=Special:Translate&amp;group=page-Parsoid&amp;action=page&amp;filter=&amp;action_source=translate_page" title="Special:Translate">Translate this page</a></div><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><div class="mw-pt-languages noprint navigation-not-searchable" lang="en" dir="ltr"><div class="mw-pt-languages-label">Languages:</div><ul class="mw-pt-languages-list"><li><a href="/wiki/Parsoid/id" class="mw-pt-progress mw-pt-progress--low" title="Parsoid (7% translated)" lang="id" dir="ltr">Bahasa Indonesia</a></li> <li><a href="/wiki/Parsoid/de" class="mw-pt-progress mw-pt-progress--med" title="Parsoid (29% translated)" lang="de" dir="ltr">Deutsch</a></li> <li><span class="mw-pt-languages-ui mw-pt-languages-selected mw-pt-progress mw-pt-progress--complete" lang="en" dir="ltr">English</span></li> <li><a href="/wiki/Parsoid/vi" class="mw-pt-progress mw-pt-progress--low" title="Parsoid (8% translated)" lang="vi" dir="ltr">Tiếng Việt</a></li> <li><a href="/wiki/Parsoid/tr" class="mw-pt-progress mw-pt-progress--low" title="Parsoid (2% translated)" lang="tr" dir="ltr">Türkçe</a></li> <li><a href="/wiki/Parsoid/es" class="mw-pt-progress mw-pt-progress--med" title="Parsoid (29% translated)" lang="es" dir="ltr">español</a></li> <li><a href="/wiki/Parsoid/fr" class="mw-pt-progress mw-pt-progress--complete" title="Parsoid (100% translated)" lang="fr" dir="ltr">français</a></li> <li><a href="/wiki/Parsoid/it" class="mw-pt-progress mw-pt-progress--med" title="Parsoid/it (25% translated)" lang="it" dir="ltr">italiano</a></li> <li><a href="/wiki/Parsoid/hu" class="mw-pt-progress mw-pt-progress--low" title="Parsoid (9% translated)" lang="hu" dir="ltr">magyar</a></li> <li><a href="/wiki/Parsoid/pl" class="mw-pt-progress mw-pt-progress--low" title="Parsoid/pl (4% translated)" lang="pl" dir="ltr">polski</a></li> <li><a href="/wiki/Parsoid/pt-br" class="mw-pt-progress mw-pt-progress--low" title="Parsoid (8% translated)" lang="pt-BR" dir="ltr">português do Brasil</a></li> <li><a href="/wiki/Parsoid/cs" class="mw-pt-progress mw-pt-progress--low" title="Parsoid (14% translated)" lang="cs" dir="ltr">čeština</a></li> <li><a href="/wiki/Parsoid/ru" class="mw-pt-progress mw-pt-progress--low" title="Parsoid (11% translated)" lang="ru" dir="ltr">русский</a></li> <li><a href="/wiki/Parsoid/zh" class="mw-pt-progress mw-pt-progress--high" title="Parsoid (79% translated)" lang="zh" dir="ltr">中文</a></li> <li><a href="/wiki/Parsoid/ja" class="mw-pt-progress mw-pt-progress--med" title="Parsoid/ja (32% translated)" lang="ja" dir="ltr">日本語</a></li> <li><a href="/wiki/Parsoid/nan" class="mw-pt-progress mw-pt-progress--low" title="Parsoid (11% translated)" lang="nan" dir="ltr">閩南語 / Bân-lâm-gú</a></li></ul></div> <style data-mw-deduplicate="TemplateStyles:r6651102">.mw-parser-output .infobox{box-sizing:border-box;border:2px solid var(--border-color-base,#a2a9b1);width:280px;border-collapse:collapse;border-spacing:0;background-color:white;color:#333;clear:right;float:right;margin:0 0 0.5em 0.5em}.mw-parser-output .infobox-rtl{clear:left;float:left;margin:0 0.5em 0.5em 0}.mw-parser-output .infobox th{text-align:left;padding:0.2em 0.5em;vertical-align:top}.mw-parser-output .infobox-rtl th{text-align:right}@media(max-width:719px){body.mediawiki .mw-parser-output .infobox{float:none;clear:both;width:100%;margin:0 0 .5em 0}}.mw-parser-output .infobox td{border:none;padding:0.2em 0.5em;vertical-align:top}.mw-parser-output .infobox-header{background-color:#a2a9b1;color:#FFF;text-align:left}.mw-parser-output .infobox-header a{color:#FFF}.mw-parser-output .infobox-header td,.mw-parser-output .infobox-header th{padding:0.5em 0.5em}.mw-parser-output .infobox-header img{padding:0 0.2em 0 0.5em}@media screen{html.skin-theme-clientpref-night .mw-parser-output .infobox{background-color:inherit;color:inherit}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .infobox{background-color:inherit;color:inherit}}</style><style data-mw-deduplicate="TemplateStyles:r6651116">.mw-parser-output .wmf-engineering-project-box{border:1px solid #eaecf0;padding:.2em;width:300px;background:#f8f9fa;color:#222}.mw-parser-output .wmf-engineering-project-box-catlink{font-size:smaller;margin:.2em;text-align:center}.mw-parser-output .wmf-engineering-project-box-title{font-size:1.2em;margin:.2em;background:#14866d;color:#fff;padding:.5em;text-align:center;font-weight:bold}.mw-parser-output .wmf-engineering-project-box-description{margin:.2em;padding:.2em;font-style:italic}.mw-parser-output .wmf-engineering-project-box-data{font-size:.9em;margin:.2em 0;width:100%}.mw-parser-output .wmf-engineering-project-box-data th{width:25%;font-weight:normal}.mw-parser-output .wmf-engineering-project-box-previous,.mw-parser-output .wmf-engineering-project-box-next{font-size:smaller;margin:.2em}.mw-parser-output .infobox-ltr .wmf-engineering-project-box-previous,.mw-parser-output .infobox-rtl .wmf-engineering-project-box-next{float:left}.mw-parser-output .infobox-ltr .wmf-engineering-project-box-next,.mw-parser-output .infobox-rtl .wmf-engineering-project-box-previous{float:right}@media screen{html.skin-theme-clientpref-night .mw-parser-output .wmf-engineering-project-box{background:transparent;color:inherit}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .wmf-engineering-project-box{background:transparent;color:inherit}}</style> <table class="infobox infobox-ltr wmf-engineering-project-box plainlinks"><tbody><tr><td> <div class="nomobile wmf-engineering-project-box-catlink"><a href="/wiki/Special:MyLanguage/Category:WMF_Projects" title="Special:MyLanguage/Category:WMF Projects">Wikimedia Foundation projects</a><span style="display:none"><a href="/wiki/Category:WMF_Projects" title="Category:WMF Projects"> </a></span></div> <div class="wmf-engineering-project-box-title">Parsoid</div> <figure class="mw-halign-center" typeof="mw:File/Frameless"><a href="/wiki/File:Parsoid_word_logo.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/0/07/Parsoid_word_logo.svg/270px-Parsoid_word_logo.svg.png" decoding="async" width="270" height="84" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/0/07/Parsoid_word_logo.svg/405px-Parsoid_word_logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/0/07/Parsoid_word_logo.svg/540px-Parsoid_word_logo.svg.png 2x" data-file-width="677" data-file-height="211"/></a><figcaption></figcaption></figure> <div class="wmf-engineering-project-box-description">A bidirectional runtime wikitext parser. Converts back and forth between wikitext and HTML/XML DOM with RDFa.</div> <table class="wmf-engineering-project-box-data"> <tbody><tr> <th scope="row">Group:</th> <td><a href="/wiki/Content_Transform_Team" title="Content Transform Team">Content Transform Team</a></td> </tr> <tr> <th scope="row">Start:</th> <td>2011-10</td> </tr> <tr> <th scope="row">Team members:</th> <td><a href="/wiki/User:Arlolra" title="User:Arlolra">Arlo Breault</a>, <a href="/wiki/User:Cscott" title="User:Cscott">C.Scott Ananian</a>, <a href="/wiki/User:IHurbainPalatin_(WMF)" title="User:IHurbainPalatin (WMF)">Isabelle Hurbain-Palatin</a>, <a href="/wiki/User:MSantos_(WMF)" title="User:MSantos (WMF)">Mateus Santos</a>, <a href="/wiki/User:JGiannelos_(WMF)" title="User:JGiannelos (WMF)">Yiannis Giannelos</a></td> </tr> <tr> <th scope="row">Backlog:</th> <td><a href="https://phabricator.wikimedia.org/tag/parsoid/" class="extiw" title="phab:tag/parsoid/">#parsoid</a></td> </tr> <tr> <th scope="row">Lead:</th> <td><a href="/wiki/User:SSastry_(WMF)" title="User:SSastry (WMF)">Subramanya Sastry</a></td> </tr> <tr> <th scope="row">Management:</th> <td>Sérgio Lopes</td> </tr> <tr class="mw-empty-elt"> </tr></tbody></table></td></tr></tbody></table> <figure typeof="mw:File/Frame"><a href="/wiki/File:Parsoid_HTML-RDFa_content_model.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/2/2e/Parsoid_HTML-RDFa_content_model.svg/512px-Parsoid_HTML-RDFa_content_model.svg.png" decoding="async" width="512" height="362" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/2/2e/Parsoid_HTML-RDFa_content_model.svg/768px-Parsoid_HTML-RDFa_content_model.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/2/2e/Parsoid_HTML-RDFa_content_model.svg/1024px-Parsoid_HTML-RDFa_content_model.svg.png 2x" data-file-width="512" data-file-height="362"/></a><figcaption>Artist's impression of the Parsoid HTML5 + RDFa wiki runtime</figcaption></figure> <p><b>Parsoid</b> is a library which allows converting back and forth between <a href="/wiki/Special:MyLanguage/Wikitext" title="Special:MyLanguage/Wikitext">wikitext</a> and HTML. The original application was written in JavaScript (using Node.js) and started running on the Wikimedia cluster in December 2012. In 2019, Parsoid was ported to PHP, and the PHP version replaced the JS version on the Wikimedia cluster in December 2019. Parsoid <a href="/wiki/Special:MyLanguage/Parsing/Parser_Unification" title="Special:MyLanguage/Parsing/Parser Unification">is being integrated into core MediaWiki</a>, with the goal of eventually replacing MediaWiki's current native parser. In early 2024, Parsoid began to be used on some production wikis as the default parser for read views. </p><p>Parsoid (the PHP version) has been <a href="/wiki/Special:MyLanguage/Parsoid/PHP" title="Special:MyLanguage/Parsoid/PHP">natively bundled</a> with MediaWiki since version 1.35, released in September 2020. For non-Wikimedia installations, Parsoid/JS was supported until the end-of-life of MediaWiki 1.31 (LTS) in <a href="/wiki/Special:MyLanguage/Version_lifecycle" title="Special:MyLanguage/Version lifecycle">September 2021</a>. The legacy parser will still be supported in MediaWiki 1.43 (LTS). </p> <meta property="mw:PageProp/toc"/> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Technical_details" data-mw-thread-id="h-Technical_details"><span data-mw-comment-start="" id="h-Technical_details"></span>Technical details<span data-mw-comment-end="h-Technical_details"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Parsoid&amp;action=edit&amp;section=1" title="Edit section: Technical details"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Technical_details","replies":[]}}--></div> <p>Parsoid is an application which can translate back and forth between MediaWiki's <a href="/wiki/Special:MyLanguage/Wikitext" title="Special:MyLanguage/Wikitext">wikitext</a> syntax and an equivalent HTML/RDFa document model with enhanced support for automated processing and rich editing. </p><p>It has been under development by a team at the Wikimedia Foundation since 2012. It is currently used extensively by <a href="/wiki/Special:MyLanguage/VisualEditor" title="Special:MyLanguage/VisualEditor">VisualEditor</a><span style="display:none"><a href="/wiki/VisualEditor" title="VisualEditor"> </a></span>, <a href="/wiki/Special:MyLanguage/Structured_discussions" title="Special:MyLanguage/Structured discussions">Structured discussions</a><span style="display:none"><a href="/wiki/Structured_discussions" class="mw-redirect" title="Structured discussions"> </a></span>, <a href="/wiki/Special:MyLanguage/Content_translation" title="Special:MyLanguage/Content translation">Content translation</a><span style="display:none"><a href="/wiki/Content_translation" title="Content translation"> </a></span> and <a href="/wiki/Special:MyLanguage/Parsoid/Users" title="Special:MyLanguage/Parsoid/Users">other applications</a>. </p><p>Parsoid is intended to provide flawless back-and-forth conversion, i.e. to avoid information loss and also prevent "dirty diffs". </p><p>On Wikimedia wikis, for several applications, Parsoid is currently proxied behind <a href="/wiki/Special:MyLanguage/RESTBase" title="Special:MyLanguage/RESTBase">RESTBase</a><span style="display:none"><a href="/wiki/RESTBase" title="RESTBase"> </a></span>, which stores the HTML translated by Parsoid. It is expected that RESTBase <a href="https://phabricator.wikimedia.org/T250500" class="extiw" title="phab:T250500">will eventually be replaced</a> with a cache more tightly integrated with MediaWiki. </p><p>For more on the overall project, see <a class="external text" href="https://blog.wikimedia.org/2013/03/04/parsoid-how-wikipedia-catches-up-with-the-web/">this blog post</a> from March 2013. To read about the HTML model being used, see <a href="/wiki/Special:MyLanguage/Parsoid/MediaWiki_DOM_spec" title="Special:MyLanguage/Parsoid/MediaWiki DOM spec">MediaWiki DOM spec</a>. </p><p>Parsoid was originally structured as a web service and written in JavaScript, making use of <code>Node.js</code>. A <a rel="nofollow" class="external text" href="https://www.youtube.com/watch?v=lQGfuLP9MqA">tech talk from February 2019</a> (<a href="/wiki/File:The_Long_And_Winding_Road_To_Making_Parsoid_The_Default_MediaWiki_Parser.pdf" title="File:The Long And Winding Road To Making Parsoid The Default MediaWiki Parser.pdf">slides</a>) and <a href="https://phabricator.wikimedia.org/phame/post/view/189/parsoid_in_php_or_there_and_back_again/" class="extiw" title="phab:phame/post/view/189/parsoid in php or there and back again/">blog post</a> describes the process of <a href="/wiki/Special:MyLanguage/Parsoid/PHP" title="Special:MyLanguage/Parsoid/PHP">porting it to PHP</a>. The Parsoid extension API is currently under active development; a <a href="/wiki/Wikimedia_Technical_Talks#Episode_6:_Retargeting_extensions_to_work_with_Parsoid" title="Wikimedia Technical Talks">tech talk from August 2020</a> describes this work. </p><p><b>GitHub Repository:</b> <a rel="nofollow" class="external free" href="https://github.com/wikimedia/parsoid">https://github.com/wikimedia/parsoid</a> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Usage" data-mw-thread-id="h-Usage"><span data-mw-comment-start="" id="h-Usage"></span>Usage<span data-mw-comment-end="h-Usage"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Parsoid&amp;action=edit&amp;section=2" title="Edit section: Usage"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Usage","replies":[]}}--></div> <ul><li><a href="/wiki/Special:MyLanguage/Parsoid/Releases" title="Special:MyLanguage/Parsoid/Releases">Parsoid/Releases</a><span style="display:none"><a href="/wiki/Parsoid/Releases" title="Parsoid/Releases"> </a></span> - List of releases made for Parsoid</li> <li><a href="/wiki/Special:MyLanguage/Parsoid/API" title="Special:MyLanguage/Parsoid/API">Parsoid/API</a><span style="display:none"><a href="/wiki/Parsoid/API" title="Parsoid/API"> </a></span> - for the web API</li> <li><a href="/wiki/Special:MyLanguage/Specs/HTML" title="Special:MyLanguage/Specs/HTML">MediaWiki DOM spec</a><span style="display:none"><a href="/wiki/Specs/HTML" class="mw-redirect" title="Specs/HTML"> </a></span> - to make sense of the HTML that you get from the API, designed to be useful as a future storage format</li> <li><a href="/wiki/Special:MyLanguage/Parsoid/LanguageConverter" title="Special:MyLanguage/Parsoid/LanguageConverter">Parsoid/LanguageConverter</a><span style="display:none"><a href="/wiki/Parsoid/LanguageConverter" title="Parsoid/LanguageConverter"> </a></span> - notes on Parsoid's implementation of <a href="/wiki/Special:MyLanguage/LanguageConverter" title="Special:MyLanguage/LanguageConverter">LanguageConverter</a><span style="display:none"><a href="/wiki/LanguageConverter" class="mw-redirect" title="LanguageConverter"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Parsoid/Known_differences_with_Core_Parser_output" title="Special:MyLanguage/Parsoid/Known differences with Core Parser output">Parsoid/Known differences with Core Parser output</a><span style="display:none"><a href="/wiki/Parsoid/Known_differences_with_Core_Parser_output" title="Parsoid/Known differences with Core Parser output"> </a></span></li></ul> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Installation" data-mw-thread-id="h-Installation"><span data-mw-comment-start="" id="h-Installation"></span>Installation<span data-mw-comment-end="h-Installation"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Parsoid&amp;action=edit&amp;section=3" title="Edit section: Installation"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Installation","replies":[]}}--></div> <p>In <b>MediaWiki 1.35</b> <i>Parsoid/PHP</i> is included in the bundle and loaded automatically by Visual Editor. No configuration necessary for MediaWiki 1.35 and later. </p><p>Parsoid exports an internal REST API which was historically used by RESTBase and not accessible outside the WMF internal cluster. This is no longer required for Visual Editor or core read views, and the internal API is being deprecated and is planned for removal in MW 1.43. </p><p>Parsoid is nominally a composer library used by mediawiki core. If you still require the internal API for some reason, you can explicitly load Parsoid "as an extension" by adding the following to LocalSettings.php: </p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nx">wfLoadExtension</span><span class="p">(</span> <span class="s1">'Parsoid'</span><span class="p">,</span> <span class="s2">"</span><span class="si">$IP</span><span class="s2">/vendor/wikimedia/parsoid/extension.json"</span> <span class="p">);</span> </pre></div> <p>Any remaining third-party users of the internal Parsoid API are strongly encouraged to migrate to the core REST HTML page endpoint which provides equivalent functionality. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Development" data-mw-thread-id="h-Development"><span data-mw-comment-start="" id="h-Development"></span>Development<span data-mw-comment-end="h-Development"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Parsoid&amp;action=edit&amp;section=4" title="Edit section: Development"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Development","replies":["h-Linking_a_developer_checkout_of_Parsoid-Development","h-Running_the_tests-Development","h-Converting_simple_wikitext-Development","h-Debugging_Parsoid_(for_developers)-Development"]}}--></div> <p>Development happens in the <a href="https://gerrit.wikimedia.org/g/mediawiki/services/parsoid" class="extiw" title="git:mediawiki/services/parsoid">Parsoid Git repository</a>. Code review happens in <a href="https://gerrit.wikimedia.org/r/q/project:mediawiki/services/parsoid" class="extiw" title="gerrit:q/project:mediawiki/services/parsoid">Gerrit</a>. See <a href="/wiki/Special:MyLanguage/Gerrit/Getting_started" title="Special:MyLanguage/Gerrit/Getting started">Gerrit/Getting started</a> to set up an account for yourself. </p><p>If you use the <a href="/wiki/Special:MyLanguage/MediaWiki-Vagrant" title="Special:MyLanguage/MediaWiki-Vagrant">MediaWiki-Vagrant</a><span style="display:none"><a href="/wiki/MediaWiki-Vagrant" title="MediaWiki-Vagrant"> </a></span> development environment using a virtual machine, you can simply add the role <code>visualeditor</code> to it and it will set up a working Parsoid along with <a href="/wiki/Special:MyLanguage/Extension:VisualEditor" title="Special:MyLanguage/Extension:VisualEditor">Extension:VisualEditor</a><span style="display:none"><a href="/wiki/Extension:VisualEditor" title="Extension:VisualEditor"> </a></span>. (This may have been broken by the switch to Parsoid/PHP: <a href="https://phabricator.wikimedia.org/T258940" class="extiw" title="phab:T258940">T258940</a>) </p><p>Note that the most-recently released version of Parsoid is written in PHP, and installation of <a href="/wiki/Parsoid/PHP" title="Parsoid/PHP">Parsoid/PHP</a> is what is described below. This is what you should use if you are running MediaWiki 1.35 or later. Check <a href="/wiki/Parsoid/JS" title="Parsoid/JS">Parsoid/JS</a> if you are running the old version of Parsoid written in JavaScript, and used for MW 1.34 and earlier. </p> <div class="mw-heading mw-heading3"><h3 id="Linking_a_developer_checkout_of_Parsoid" data-mw-thread-id="h-Linking_a_developer_checkout_of_Parsoid-Development"><span data-mw-comment-start="" id="h-Linking_a_developer_checkout_of_Parsoid-Development"></span>Linking a developer checkout of Parsoid<span data-mw-comment-end="h-Linking_a_developer_checkout_of_Parsoid-Development"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Parsoid&amp;action=edit&amp;section=5" title="Edit section: Linking a developer checkout of Parsoid"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>In a standard MediaWiki installation, Parsoid is included from MediaWiki as a composer library, <code>wikimedia/parsoid</code>. </p><p>For development purposes you usually want to use a git checkout of Parsoid, and not the version bundled in MediaWiki core as a composer library. The following lines added to <a href="/wiki/Special:MyLanguage/Manual:LocalSettings.php" title="Special:MyLanguage/Manual:LocalSettings.php">LocalSettings.php</a><span style="display:none"><a href="/wiki/Manual:LocalSettings.php" title="Manual:LocalSettings.php"> </a></span> allow use of a git checkout of Parsoid (optionally), load the Parsoid REST API with <a href="/wiki/Special:MyLanguage/Manual:Extension_registration" title="Special:MyLanguage/Manual:Extension registration">wfLoadExtension</a><span style="display:none"><a href="/wiki/Manual:Extension_registration" title="Manual:Extension registration"> </a></span> (rather than using the version bundled in VisualEditor) and manually do the Parsoid configuration which is usually done by VisualEditor: </p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$parsoidInstallDir</span> <span class="o">=</span> <span class="s1">'vendor/wikimedia/parsoid'</span><span class="p">;</span> <span class="c1"># bundled copy</span> <span class="c1">#$parsoidInstallDir = '/my/path/to/git/checkout/of/Parsoid';</span> <span class="c1">// For developers: ensure Parsoid is executed from $parsoidInstallDir,</span> <span class="c1">// (not the version included in mediawiki-core by default)</span> <span class="c1">// Must occur *before* wfLoadExtension()</span> <span class="k">if</span> <span class="p">(</span> <span class="nv">$parsoidInstallDir</span> <span class="o">!==</span> <span class="s1">'vendor/wikimedia/parsoid'</span> <span class="p">)</span> <span class="p">{</span> <span class="k">function</span> <span class="nf">wfInterceptParsoidLoading</span><span class="p">(</span> <span class="nv">$className</span> <span class="p">)</span> <span class="p">{</span> <span class="c1">// Only intercept Parsoid namespace classes</span> <span class="k">if</span> <span class="p">(</span> <span class="nb">preg_match</span><span class="p">(</span> <span class="s1">'/(MW|Wikimedia\\\\)Parsoid\\\\/'</span><span class="p">,</span> <span class="nv">$className</span> <span class="p">)</span> <span class="p">)</span> <span class="p">{</span> <span class="nv">$fileName</span> <span class="o">=</span> <span class="nx">Autoloader</span><span class="o">::</span><span class="na">find</span><span class="p">(</span> <span class="nv">$className</span> <span class="p">);</span> <span class="k">if</span> <span class="p">(</span> <span class="nv">$fileName</span> <span class="o">!==</span> <span class="k">null</span> <span class="p">)</span> <span class="p">{</span> <span class="k">require</span> <span class="nv">$fileName</span><span class="p">;</span> <span class="p">}</span> <span class="p">}</span> <span class="p">}</span> <span class="nb">spl_autoload_register</span><span class="p">(</span> <span class="s1">'wfInterceptParsoidLoading'</span><span class="p">,</span> <span class="k">true</span><span class="p">,</span> <span class="k">true</span> <span class="p">);</span> <span class="c1">// AutoLoader::registerNamespaces was added in MW 1.39</span> <span class="nx">AutoLoader</span><span class="o">::</span><span class="na">registerNamespaces</span><span class="p">(</span> <span class="p">[</span> <span class="c1">// Keep this in sync with the "autoload" clause in</span> <span class="c1">// $parsoidInstallDir/composer.json</span> <span class="s1">'Wikimedia\\Parsoid\\'</span> <span class="o">=></span> <span class="s2">"</span><span class="si">$parsoidInstallDir</span><span class="s2">/src"</span><span class="p">,</span> <span class="p">]</span> <span class="p">);</span> <span class="p">}</span> <span class="nx">wfLoadExtension</span><span class="p">(</span> <span class="s1">'Parsoid'</span><span class="p">,</span> <span class="s2">"</span><span class="si">$parsoidInstallDir</span><span class="s2">/extension.json"</span> <span class="p">);</span> <span class="c1"># Manually configure Parsoid</span> <span class="nv">$wgVisualEditorParsoidAutoConfig</span> <span class="o">=</span> <span class="k">false</span><span class="p">;</span> <span class="nv">$wgParsoidSettings</span> <span class="o">=</span> <span class="p">[</span> <span class="s1">'useSelser'</span> <span class="o">=></span> <span class="k">true</span><span class="p">,</span> <span class="s1">'rtTestMode'</span> <span class="o">=></span> <span class="k">false</span><span class="p">,</span> <span class="s1">'linting'</span> <span class="o">=></span> <span class="k">false</span><span class="p">,</span> <span class="p">];</span> <span class="nv">$wgVirtualRestConfig</span><span class="p">[</span><span class="s1">'modules'</span><span class="p">][</span><span class="s1">'parsoid'</span><span class="p">]</span> <span class="o">=</span> <span class="p">[</span> <span class="c1">// URL to the Parsoid instance.</span> <span class="c1">// If Parsoid is not running locally, you should change $wgServer to match the non-local host </span> <span class="c1">// While using Docker in macOS, you may need to replace $wgServer with http://host.docker.internal:8080</span> <span class="c1">// While using Docker in linux, you may need to replace $wgServer with http://172.17.0.1:8080</span> <span class="s1">'url'</span> <span class="o">=></span> <span class="nv">$wgServer</span> <span class="o">.</span> <span class="nv">$wgScriptPath</span> <span class="o">.</span> <span class="s1">'/rest.php'</span><span class="p">,</span> <span class="c1">// Parsoid "domain", see below (optional, rarely needed)</span> <span class="c1">// 'domain' => 'localhost',</span> <span class="p">];</span> <span class="nb">unset</span><span class="p">(</span> <span class="nv">$parsoidInstallDir</span> <span class="p">);</span> </pre></div> <p>These lines are not necessary for most users of VisualEditor, who can use auto-configuration and the bundled Parsoid code included in MediaWiki 1.35 and VisualEditor, but they will be required for most developers. </p><p>If you're serving MediaWiki with Nginx, you'll need to also add something like this in your server block (Assuming your MediaWiki setup has its files residing in <code>/w/</code>): </p> <div class="mw-highlight mw-highlight-lang-nginx mw-content-ltr" dir="ltr"><pre><span></span><span class="k">location</span><span class="w"> </span><span class="s">/w/rest.php/</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="kn">try_files</span><span class="w"> </span><span class="nv">$uri</span><span class="w"> </span><span class="nv">$uri/</span><span class="w"> </span><span class="s">/w/rest.php?</span><span class="nv">$query_string</span><span class="p">;</span> <span class="p">}</span> </pre></div> <p>To test proper configuration, visit <code>{$wgScriptPath}/rest.php/{$domain}/v3/page/html/Main%20Page</code> where <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" style="" dir="ltr"><span class="nv">$domain</span></code> is the hostname in your <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" style="" dir="ltr"><span class="nv">$wgCanonicalServer</span></code>. (Note that production WMF servers do not expose the Parsoid REST API to the external network.) </p> <div class="mw-heading mw-heading3"><h3 id="Running_the_tests" data-mw-thread-id="h-Running_the_tests-Development"><span data-mw-comment-start="" id="h-Running_the_tests-Development"></span>Running the tests<span data-mw-comment-end="h-Running_the_tests-Development"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Parsoid&amp;action=edit&amp;section=6" title="Edit section: Running the tests"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>To run all parser tests and mocha tests: </p> <div class="mw-highlight mw-highlight-lang-shell-session mw-content-ltr" dir="ltr"><pre><span></span><span class="gp">$ </span>composer<span class="w"> </span><span class="nb">test</span> </pre></div> <p>The parser tests have quite a few options now which can be listed using <code>php bin/parserTests.php --help</code>. </p><p>If you have the environment variable <code>MW_INSTALL_DIR</code> pointing to a configured MediaWiki installation, you can run some additional tests with: </p> <div class="mw-highlight mw-highlight-lang-shell-session mw-content-ltr" dir="ltr"><pre><span></span><span class="gp">$ </span>composer<span class="w"> </span>phan-integrated </pre></div> <div class="mw-heading mw-heading3"><h3 id="Converting_simple_wikitext" data-mw-thread-id="h-Converting_simple_wikitext-Development"><span data-mw-comment-start="" id="h-Converting_simple_wikitext-Development"></span>Converting simple wikitext<span data-mw-comment-end="h-Converting_simple_wikitext-Development"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Parsoid&amp;action=edit&amp;section=7" title="Edit section: Converting simple wikitext"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>You can convert simple wikitext snippets from the command line using the <code>parse.php</code> script in the <code>bin/</code> directory: </p> <pre>echo '<a href="/w/index.php?title=Foo&amp;action=edit&amp;redlink=1" class="new" title="Foo (page does not exist)">Foo</a>' | php bin/parse.php </pre> <p>The parse script has a lot of options. <kbd><code>php bin/parse.php --help</code></kbd> gives you information about this. </p> <div class="mw-heading mw-heading3"><h3 id="Debugging_Parsoid_(for_developers)" data-mw-thread-id="h-Debugging_Parsoid_(for_developers)-Development"><span id="Debugging_Parsoid_.28for_developers.29"></span><span data-mw-comment-start="" id="h-Debugging_Parsoid_(for_developers)-Development"></span>Debugging Parsoid (for developers)<span data-mw-comment-end="h-Debugging_Parsoid_(for_developers)-Development"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Parsoid&amp;action=edit&amp;section=8" title="Edit section: Debugging Parsoid (for developers)"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>See <a href="/wiki/Special:MyLanguage/Parsoid/Debugging" title="Special:MyLanguage/Parsoid/Debugging">Parsoid/Debugging</a><span style="display:none"><a href="/wiki/Parsoid/Debugging" title="Parsoid/Debugging"> </a></span> for debugging tips. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Continuous_Integration" data-mw-thread-id="h-Continuous_Integration"><span data-mw-comment-start="" id="h-Continuous_Integration"></span>Continuous Integration<span data-mw-comment-end="h-Continuous_Integration"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Parsoid&amp;action=edit&amp;section=9" title="Edit section: Continuous Integration"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Continuous_Integration","replies":[]}}--></div> <p><i>As of October 2021</i> </p><p>Parsoid is always available as a library since it is a composer dependency of MediaWiki core. But two pieces are not enabled: </p> <ul><li>Parsoid ServiceWiring</li> <li>Parsoid's external REST api</li></ul> <p>The test runner <a href="/wiki/Quibble" class="mw-redirect" title="Quibble">Quibble</a> would enable it if it detects <code>mediawiki/services/parsoid.git</code> has been cloned as part of the build. In which case it: </p> <ul><li>points the autoloader for <code>Wikimedia\Parsoid</code> to the cloned code (effectively replacing the version installed by composer)</li> <li>Load the extension <code>wfLoadExtension( 'Parsoid', '/path/to/cloned/repo' );</code></li></ul> <p>The ServiceWiring should be enabled in MediaWiki starting with 1.38. </p><p>The REST API would theorically never get merged in MediaWiki: a) it has never been exposed to the public in production, it is an internal API used by RESTBase which is going away; b) it never has been security audited and c) it is redundant with the enterprise MediaWiki API. The solution will be for VisualEditor to invoke Parsoid directly via the VisualEditor Action API which would save a round trip through the REST API. </p><p>Loading the extension is thus a hack which enables using interfaces subject to change and which we don't really want people to use yet. </p><p>For most purposes, parsoid should thus not be added as a CI dependency, the only exception as of October 2021 is the Disambiguator MediaWiki extension. </p><p>Loading parsoid as an extension let us run MediaWiki integration test jobs against <code>mediawiki/services/parsoid.git</code> (such as Quibble, apitesting) and ensure Parsoid and MediaWiki work together. </p><p>An extension may be able to write tests with Parsoid even when the repository has not been cloned. Since it is a composer dependency of MediaWiki core the <code>MediaWiki\Parsoid</code> namespace is available, but the service wiring part is not (it is <code>extension/src</code> in the Parsoid repository and exposed as the <code>\MWParsoid</code> namespace). The <code>ParsoidTestFileSuite.php</code> code would only run the parser tests if Parsoid has been loaded (which should be the default with MediaWiki 1.38). </p><p>For CI, Parsoid is tested against the tip of mediawiki, whereas mediawiki is tested with the composer dependency. In case of a breaking change, the Parsoid change get merged first (which breaks its CI but not MediaWiki one) and MediaWiki get adjusted when Parsoid is updated. It is thus a one way change. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Release_build" data-mw-thread-id="h-Release_build"><span data-mw-comment-start="" id="h-Release_build"></span>Release build<span data-mw-comment-end="h-Release_build"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Parsoid&amp;action=edit&amp;section=10" title="Edit section: Release build"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Release_build","replies":[]}}--></div> <p>For MediaWiki release builds, we have an integration of Parsoid ServiceWiring into VisualEditor in order to have VisualEditor work without further configuration (beside a <code>wfLoadExtension( 'VisualEditor' )</code>). The release build also enables the REST API and hook everything us so that parsoid works out of the box. This is done by copying a bit of parsoid code into VisualEditor which is not in the master branch of VisualEditor since that would be obsolete as soon as Parsoid is updated. Instead the code is maintained in two places. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Technical_documents" data-mw-thread-id="h-Technical_documents"><span data-mw-comment-start="" id="h-Technical_documents"></span>Technical documents<span data-mw-comment-end="h-Technical_documents"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Parsoid&amp;action=edit&amp;section=11" title="Edit section: Technical documents"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Technical_documents","replies":["h-Links_for_Parsoid_developers-Technical_documents","h-Links_for_Parsoid_deployers_(to_the_Wikimedia_cluster)-Technical_documents"]}}--></div> <ul><li><a href="/wiki/Parsoid/Internals" title="Parsoid/Internals">Parsoid/Internals</a>: documentation about Parsoid internals with links to other details.</li> <li><a href="/wiki/Special:MyLanguage/Parsing/Notes/Moving_Parsoid_Into_Core/Porting" title="Special:MyLanguage/Parsing/Notes/Moving Parsoid Into Core/Porting">PHP Porting notes</a> and <a href="/wiki/Special:MyLanguage/Parsoid/PHP/Help_wanted" title="Special:MyLanguage/Parsoid/PHP/Help wanted">help-wanted tasks</a></li> <li><a href="/wiki/Parsoid/Deployments" title="Parsoid/Deployments">Parsoid deployment agenda on Wikimedia cluster</a> (code normally deployed every Monday and Wednesday between 1pm - 1:30pm PST)</li> <li><a href="/wiki/Parsoid/Round-trip_testing" title="Parsoid/Round-trip testing">Parsoid/Round-trip testing</a>: The round-trip testing setup we are using to test the wikitext -> HTML DOM -> wikitext round-trip on actual Wikipedia content.</li> <li><a href="/wiki/Parsoid/Visual_Diffs_Testing" class="mw-redirect" title="Parsoid/Visual Diffs Testing">Parsoid/Visual Diffs Testing</a>: Info about visual diff testing for comparing Parsoid's html rendering with php parser's html rendering + a testreduce setup for doing mass visual diff tests.</li> <li><a href="/wiki/Parsoid/limitations" title="Parsoid/limitations">Parsoid/limitations</a>: Limitations in Parsoid, mainly contrived templating (ab)uses that don't matter in practice. Could be extended to be similar to <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/MNPP" class="extiw" title="meta:Special:MyLanguage/MNPP">the preprocessor upgrade notes</a> (<b>Might need updating</b>)</li> <li><a href="/wiki/Parsoid/Bibliography" title="Parsoid/Bibliography">Parsoid/Bibliography</a>: Bibliography of related literature</li></ul> <div class="mw-heading mw-heading3"><h3 id="Links_for_Parsoid_developers" data-mw-thread-id="h-Links_for_Parsoid_developers-Technical_documents"><span data-mw-comment-start="" id="h-Links_for_Parsoid_developers-Technical_documents"></span>Links for Parsoid developers<span data-mw-comment-end="h-Links_for_Parsoid_developers-Technical_documents"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Parsoid&amp;action=edit&amp;section=12" title="Edit section: Links for Parsoid developers"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>See <a href="/wiki/Parsoid/Debugging" title="Parsoid/Debugging">Parsoid/Debugging</a> for debugging tips.</li> <li><a href="/wiki/Parsoid/Upgrade_packages" title="Parsoid/Upgrade packages">Upgrading or adding packages</a> to Parsoid</li> <li><a rel="nofollow" class="external text" href="https://github.com/wikimedia/parsoid/blob/39ea4e49783b1f88326d6ebddd14e08bb39cb649/tools/sync-parserTests.js#L5-L34">See these instructions</a> for syncing Parsoid's copy of parser tests to/from core</li> <li>Parsoid has a limited <a class="external text" href="https://doc.wikimedia.org/Parsoid/master/#!/api/Parsoid">library interface</a> for invoking it programatically.</li> <li><a rel="nofollow" class="external text" href="https://www.youtube.com/watch?v=lS1xPkERWCM">Tech Talk about Retargeting extensions to work with Parsoid</a></li> <li><a href="/wiki/Parsoid/So_you_want_your_extension_to_work_with_Parsoid" title="Parsoid/So you want your extension to work with Parsoid">So you want your extension to work with Parsoid</a></li> <li><a href="/wiki/Parsoid/Parsoid_HTML_Specification_Versioning" title="Parsoid/Parsoid HTML Specification Versioning">Parsoid HTML Specification Versioning</a></li> <li><a href="/wiki/Parsoid/So_you_are_going_to_change_Parsoid_output" title="Parsoid/So you are going to change Parsoid output">So you are going to change Parsoid output</a></li></ul> <div class="mw-heading mw-heading3"><h3 id="Links_for_Parsoid_deployers_(to_the_Wikimedia_cluster)" data-mw-thread-id="h-Links_for_Parsoid_deployers_(to_the_Wikimedia_cluster)-Technical_documents"><span id="Links_for_Parsoid_deployers_.28to_the_Wikimedia_cluster.29"></span><span data-mw-comment-start="" id="h-Links_for_Parsoid_deployers_(to_the_Wikimedia_cluster)-Technical_documents"></span>Links for Parsoid deployers (to the Wikimedia cluster)<span data-mw-comment-end="h-Links_for_Parsoid_deployers_(to_the_Wikimedia_cluster)-Technical_documents"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Parsoid&amp;action=edit&amp;section=13" title="Edit section: Links for Parsoid deployers (to the Wikimedia cluster)"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a href="/wiki/Parsoid/Deployments" title="Parsoid/Deployments">Parsoid/Deployments</a></li> <li><a class="external text" href="https://parsoid-rt-tests.wikimedia.org/commits">RT testing commits</a> (useful to check regressions and fixes)</li> <li><a href="https://wikitech.wikimedia.org/wiki/Parsoid#Deploying_changes" class="extiw" title="labsconsole:Parsoid">Deployment instructions for Parsoid</a></li> <li><a class="external text" href="https://logstash.wikimedia.org/app/kibana#/dashboard/parsoid">Kibana dashboard</a></li> <li><a class="external text" href="https://grafana.wikimedia.org/d/TCWoeymIk/parsoid-timing-wt2html-entry">Grafana dashboard for wt2html metrics</a></li> <li><a class="external text" href="https://grafana.wikimedia.org/d/jmaNtVMIz/parsoid-timing-html2wt-entry">Grafana dashboard for html2wt metrics</a></li> <li><a class="external text" href="https://grafana.wikimedia.org/d/000000607/cluster-overview?orgId=1&amp;from=now-24h&amp;to=now&amp;var-datasource=eqiad%20prometheus%2Fops&amp;var-cluster=parsoid&amp;var-instance=All&amp;var-site=eqiad">Prometheus breakdown for the Parsoid cluster on eqiad</a></li> <li><a class="external text" href="https://grafana.wikimedia.org/d/000000607/cluster-overview?orgId=1&amp;from=now-24h&amp;to=now&amp;var-datasource=codfw%20prometheus%2Fops&amp;var-cluster=parsoid&amp;var-instance=All&amp;var-site=codfw">Prometheus breakdown for the Parsoid cluster on codfw</a></li> <li><a href="/wiki/CI/JJB" class="mw-redirect" title="CI/JJB">Jenkins Job Builder docs</a> for updating jenkins jobs</li></ul> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="See_also" data-mw-thread-id="h-See_also"><span data-mw-comment-start="" id="h-See_also"></span>See also<span data-mw-comment-end="h-See_also"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Parsoid&amp;action=edit&amp;section=14" title="Edit section: See also"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-See_also","replies":[]}}--></div> <ul><li><a href="https://en.wikipedia.org/wiki/en:API" class="extiw" title="w:en:API">API</a></li> <li><a href="/wiki/Special:MyLanguage/RESTBase" title="Special:MyLanguage/RESTBase">RESTBase</a>: a caching / storing API proxy for page HTML translated by Parsoid</li> <li>Quarterly review meetings of the Parsoid team: <a href="https://meta.wikimedia.org/wiki/WMF_Metrics_and_activities_meetings/Quarterly_reviews/Parsoid,_Services,_MW_Core,_Ops,_RelEng,_MM,_Labs_and_ECT,_April_2015" class="extiw" title="m:WMF Metrics and activities meetings/Quarterly reviews/Parsoid, Services, MW Core, Ops, RelEng, MM, Labs and ECT, April 2015">April 2015</a>, <a href="https://meta.wikimedia.org/wiki/WMF_Metrics_and_activities_meetings/Quarterly_reviews/Services/January_2015" class="extiw" title="m:WMF Metrics and activities meetings/Quarterly reviews/Services/January 2015">January 2015</a> (<a href="https://meta.wikimedia.org/wiki/WMF_Metrics_and_activities_meetings/Quarterly_reviews" class="extiw" title="m:WMF Metrics and activities meetings/Quarterly reviews">earlier</a>)</li> <li><a href="/wiki/Parser_2011/Parser_plan" title="Parser 2011/Parser plan">Parser 2011/Parser plan</a>: Early (now relatively old) design ideas and issues</li> <li><a href="/wiki/Special:PrefixIndex/Parsoid/" title="Special:PrefixIndex/Parsoid/">Special:PrefixIndex/Parsoid/</a>: Parsoid-related pages on this wiki</li> <li><a href="/wiki/Extension:ParsoidBatchAPI" title="Extension:ParsoidBatchAPI">Extension:ParsoidBatchAPI</a> (archived)</li> <li><a rel="nofollow" class="external text" href="https://github.com/wikimedia/parsoid-jsapi">parsoid-jsapi</a>: a high-level interface for extraction and transformation of wikitext, similar to the <a rel="nofollow" class="external text" href="https://github.com/earwig/mwparserfromhell">mwparserfromhell</a> API.</li> <li><a href="/wiki/Special:MyLanguage/Alternative_parsers" title="Special:MyLanguage/Alternative parsers">Alternative parsers</a></li> <li><a href="/wiki/Parsoid/Parser_Unification" title="Parsoid/Parser Unification">Parsoid/Parser Unification</a></li></ul> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="External_links" data-mw-thread-id="h-External_links"><span data-mw-comment-start="" id="h-External_links"></span>External links<span data-mw-comment-end="h-External_links"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Parsoid&amp;action=edit&amp;section=15" title="Edit section: External links"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-External_links","replies":[]}}--></div> <ul><li><a href="https://gerrit.wikimedia.org/g/mediawiki/services/parsoid/" class="extiw" title="git:mediawiki/services/parsoid/">Source code</a> (<a rel="nofollow" class="external text" href="https://github.com/wikimedia/parsoid/">GitHub mirror</a>)</li> <li><a class="external text" href="https://doc.wikimedia.org/Parsoid/master/">JS Documentation</a> (old version of Parsoid)</li> <li><a class="external text" href="https://doc.wikimedia.org/Parsoid-PHP/master/">PHP Documentation</a></li> <li><a href="https://commons.wikimedia.org/wiki/Category:Parsoid" class="extiw" title="commons:Category:Parsoid"><i>Parsoid</i> on the Wikimedia Commons</a></li></ul> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Contact" data-mw-thread-id="h-Contact"><span data-mw-comment-start="" id="h-Contact"></span>Contact<span data-mw-comment-end="h-Contact"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Parsoid&amp;action=edit&amp;section=16" title="Edit section: Contact"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Contact","replies":[]}}--></div> <p>If you need help or have questions/feedback, you can contact us in <style data-mw-deduplicate="TemplateStyles:r6651115">.mw-parser-output .irc-connect>a{color:green}@media screen{html.skin-theme-clientpref-night .mw-parser-output .irc-connect>a{color:#12c812}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .irc-connect>a{color:#12c812}}</style><span class="plainlinks" style="font-family: monospace,Courier; white-space: pre-wrap !important; word-wrap: break-word; max-width: 1200px; overflow: auto;" title="#mediawiki-parsoid on Libera.Chat IRC"><a rel="nofollow" class="external text" href="ircs://irc.libera.chat:6697/mediawiki-parsoid">#mediawiki-parsoid</a></span> <sup class="plainlinks irc-connect"><a rel="nofollow" class="external text" href="https://web.libera.chat/?channel=#mediawiki-parsoid">connect</a></sup> or <a class="external text" href="https://lists.wikimedia.org/mailman/listinfo/wikitext-l"><b>the wikitext-l mailing list</b></a>. If all that fails, you can also contact us by email at <code>content-transform-team</code> at the <code>wikimedia.org</code> domain. </p> <style data-mw-deduplicate="TemplateStyles:r6870138">.mw-parser-output table.ambox{margin:0 10%;width:unset;border:1px solid var(--border-color-base,#a2a9b1);border-left:10px solid var(--border-color-progressive,#36c);background-color:var(--background-color-neutral-subtle,#f8f9fa);box-sizing:border-box}.mw-parser-output table.ambox+table.ambox,.mw-parser-output table.ambox+link+table.ambox,.mw-parser-output table.ambox+style+table.ambox{margin-top:-1px}.mw-parser-output .ambox td.mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ambox th.mbox-text,.mw-parser-output .ambox td.mbox-text{border:none;padding:0.25em 0.5em;width:100%}.mw-parser-output .ambox td.mbox-image{padding:2px 0 2px 0.5em}.mw-parser-output .ambox td.mbox-imageright{padding:2px 0.5em 2px 0}.mw-parser-output table.ambox-notice{border-left-color:var(--border-color-progressive,#36c)}.mw-parser-output table.ambox-speedy{background-color:var(--background-color-error-subtle,#fee7e6)}.mw-parser-output table.ambox-delete,.mw-parser-output table.ambox-speedy{border-left-color:var(--background-color-error--active,#b32424)}.mw-parser-output table.ambox-content{border-left-color:#f28500}.mw-parser-output table.ambox-style{border-left-color:#fc3}.mw-parser-output table.ambox-move{border-left-color:#9932cc}.mw-parser-output table.ambox-protection{border-left-color:var(--border-color-base,#a2a9b1)}html body.mediawiki .mw-parser-output .ambox.mbox-small{clear:right;float:right;margin:4px 0 4px 1em;box-sizing:border-box;width:238px;font-size:88%;line-height:1.25em}html body.mediawiki .mw-parser-output .ambox.mbox-small-left{margin:4px 1em 4px 0;box-sizing:border-box;overflow:hidden;width:238px;border-collapse:collapse;font-size:88%;line-height:1.25em}</style><table class="ambox ambox-notice plainlinks metadata" role="presentation"><tbody><tr><td class="mbox-image"><div style="width:52px"><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/e/ec/OOjs_UI_icon_information-progressive.svg/40px-OOjs_UI_icon_information-progressive.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/ec/OOjs_UI_icon_information-progressive.svg/60px-OOjs_UI_icon_information-progressive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/ec/OOjs_UI_icon_information-progressive.svg/80px-OOjs_UI_icon_information-progressive.svg.png 2x" data-file-width="20" data-file-height="20"/></span></span></div></td><td class="mbox-text"><div class="mbox-text-span">Parsoid is maintained by <b>the <a href="/wiki/Content_Transform_Team" title="Content Transform Team">Content Transform Team</a></b>. <p>Get help: </p> <ul><li><span typeof="mw:File"><a href="/wiki/File:OOjs_UI_icon_speechBubbles-ltr-progressive.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/9/99/OOjs_UI_icon_speechBubbles-ltr-progressive.svg/16px-OOjs_UI_icon_speechBubbles-ltr-progressive.svg.png" decoding="async" width="16" height="16" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/9/99/OOjs_UI_icon_speechBubbles-ltr-progressive.svg/24px-OOjs_UI_icon_speechBubbles-ltr-progressive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/9/99/OOjs_UI_icon_speechBubbles-ltr-progressive.svg/32px-OOjs_UI_icon_speechBubbles-ltr-progressive.svg.png 2x" data-file-width="20" data-file-height="20"/></a></span> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651115"><span class="plainlinks" style="font-family: monospace,Courier; white-space: pre-wrap !important; word-wrap: break-word; max-width: 1200px; overflow: auto;" title="#mediawiki-parsoid on Libera.Chat IRC"><a rel="nofollow" class="external text" href="ircs://irc.libera.chat:6697/mediawiki-parsoid">#mediawiki-parsoid</a></span> <sup class="plainlinks irc-connect"><a rel="nofollow" class="external text" href="https://web.libera.chat/?channel=#mediawiki-parsoid">connect</a></sup> ← Live chat (<a href="/wiki/Special:MyLanguage/MediaWiki_on_IRC" title="Special:MyLanguage/MediaWiki on IRC">IRC</a>)</li> <li><span typeof="mw:File"><a href="/wiki/File:OOjs_UI_icon_message-progressive.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/7/7e/OOjs_UI_icon_message-progressive.svg/16px-OOjs_UI_icon_message-progressive.svg.png" decoding="async" width="16" height="16" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/7/7e/OOjs_UI_icon_message-progressive.svg/24px-OOjs_UI_icon_message-progressive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/7/7e/OOjs_UI_icon_message-progressive.svg/32px-OOjs_UI_icon_message-progressive.svg.png 2x" data-file-width="20" data-file-height="20"/></a></span> <a class="external text" href="https://lists.wikimedia.org/mailman/listinfo/wikitext-l">wikitext-l</a> ← <a href="/wiki/Special:MyLanguage/Mailing_lists" title="Special:MyLanguage/Mailing lists">Mailing list</a><span style="display:none"><a href="/wiki/Mailing_lists" title="Mailing lists"> </a></span></li> <li><a href="/wiki/Talk:Parsoid" title="Talk:Parsoid">Talk:Parsoid</a> ← <a href="/wiki/Special:MyLanguage/Help:Talk_pages" title="Special:MyLanguage/Help:Talk pages">Talk page</a><span style="display:none"><a href="/wiki/Help:Talk_pages" title="Help:Talk pages"> </a></span></li> <li><span typeof="mw:File"><a href="/wiki/File:Favicon-Phabricator-WM.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/a/a4/Favicon-Phabricator-WM.svg/16px-Favicon-Phabricator-WM.svg.png" decoding="async" width="16" height="16" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/a/a4/Favicon-Phabricator-WM.svg/24px-Favicon-Phabricator-WM.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/a/a4/Favicon-Phabricator-WM.svg/32px-Favicon-Phabricator-WM.svg.png 2x" data-file-width="592" data-file-height="592"/></a></span> <a href="https://phabricator.wikimedia.org/tag/parsoid" class="extiw" title="phab:tag/parsoid">parsoid</a> (<span class="plainlinks"><a class="external text" href="https://phabricator.wikimedia.org/maniphest/task/edit/form/1/?tags=parsoid">add task</a></span>) ← <a href="/wiki/Special:MyLanguage/Phabricator" title="Special:MyLanguage/Phabricator">Phabricator</a><span style="display:none"><a href="/wiki/Phabricator" title="Phabricator"> </a></span> project page</li></ul></div></td></tr></tbody></table> <!-- NewPP limit report Parsed by mw‐api‐int.codfw.main‐5f67bcf949‐v22ls Cached time: 20241127012707 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] DiscussionTools time usage: 0.024 seconds CPU time usage: 0.428 seconds Real time usage: 0.593 seconds Preprocessor visited node count: 1936/1000000 Post‐expand include size: 26802/2097152 bytes Template argument size: 4199/2097152 bytes Highest expansion depth: 17/100 Expensive parser function count: 28/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 15297/5000000 bytes Lua time usage: 0.066/10.000 seconds Lua memory usage: 1199495/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 263.471 1 -total 42.75% 112.635 19 Template:Ll 35.45% 93.392 1 Template:Wikimedia_engineering_project_information 22.63% 59.635 1 Template:Feedback 22.20% 58.488 21 Template:Pagelang 20.98% 55.280 1 Template:Mbox 18.49% 48.717 39 Template:Translatable 8.39% 22.106 1 Template:Dir 5.30% 13.964 1 Template:Ptag 5.08% 13.381 4 Template:TNTN --> <!-- Saved in parser cache with key mediawikiwiki:pcache:idhash:36931-0!canonical and timestamp 20241127012707 and revision id 6730326. Rendering was triggered because: api-parse --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://www.mediawiki.org/w/index.php?title=Parsoid&amp;oldid=6730326">https://www.mediawiki.org/w/index.php?title=Parsoid&amp;oldid=6730326</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Special:Categories" title="Special:Categories">Categories</a>: <ul><li><a href="/wiki/Category:WMF_Projects" title="Category:WMF Projects">WMF Projects</a></li><li><a href="/wiki/Category:MediaWiki_development" title="Category:MediaWiki development">MediaWiki development</a></li><li><a href="/wiki/Category:Parser" title="Category:Parser">Parser</a></li><li><a href="/wiki/Category:Parsoid" title="Category:Parsoid">Parsoid</a></li><li><a href="/wiki/Category:Wikitext" title="Category:Wikitext">Wikitext</a></li><li><a href="/wiki/Category:Development_notes" title="Category:Development notes">Development notes</a></li><li><a href="/wiki/Category:Used_on_Wikimedia" title="Category:Used on Wikimedia">Used on Wikimedia</a></li><li><a href="/wiki/Category:VisualEditor" title="Category:VisualEditor">VisualEditor</a></li><li><a href="/wiki/Category:Libraries" title="Category:Libraries">Libraries</a></li></ul></div><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Hidden categories: <ul><li><a href="/wiki/Category:WMF_Projects_2011q4" title="Category:WMF Projects 2011q4">WMF Projects 2011q4</a></li><li><a href="/wiki/Category:WMF_Projects_2012q1" title="Category:WMF Projects 2012q1">WMF Projects 2012q1</a></li><li><a href="/wiki/Category:WMF_Projects_2012q2" title="Category:WMF Projects 2012q2">WMF Projects 2012q2</a></li><li><a href="/wiki/Category:WMF_Projects_2012q3" title="Category:WMF Projects 2012q3">WMF Projects 2012q3</a></li><li><a href="/wiki/Category:WMF_Projects_2012q4" title="Category:WMF Projects 2012q4">WMF Projects 2012q4</a></li><li><a href="/wiki/Category:WMF_Projects_2013q1" title="Category:WMF Projects 2013q1">WMF Projects 2013q1</a></li><li><a href="/wiki/Category:WMF_Projects_2013q2" title="Category:WMF Projects 2013q2">WMF Projects 2013q2</a></li><li><a href="/wiki/Category:WMF_Projects_2013q3" title="Category:WMF Projects 2013q3">WMF Projects 2013q3</a></li><li><a href="/wiki/Category:WMF_Projects_2013q4" title="Category:WMF Projects 2013q4">WMF Projects 2013q4</a></li><li><a href="/wiki/Category:WMF_Projects_2014q1" title="Category:WMF Projects 2014q1">WMF Projects 2014q1</a></li><li><a href="/wiki/Category:WMF_Projects_2014q2" title="Category:WMF Projects 2014q2">WMF Projects 2014q2</a></li><li><a href="/wiki/Category:WMF_Projects_2014q3" title="Category:WMF Projects 2014q3">WMF Projects 2014q3</a></li><li><a href="/wiki/Category:WMF_Projects_2014q4" title="Category:WMF Projects 2014q4">WMF Projects 2014q4</a></li><li><a href="/wiki/Category:WMF_Projects_2015q1" title="Category:WMF Projects 2015q1">WMF Projects 2015q1</a></li><li><a href="/wiki/Category:WMF_Projects_2015q2" title="Category:WMF Projects 2015q2">WMF Projects 2015q2</a></li><li><a href="/wiki/Category:WMF_Projects_2015q3" title="Category:WMF Projects 2015q3">WMF Projects 2015q3</a></li><li><a href="/wiki/Category:WMF_Projects_2015q4" title="Category:WMF Projects 2015q4">WMF Projects 2015q4</a></li><li><a href="/wiki/Category:WMF_Projects_2016q1" title="Category:WMF Projects 2016q1">WMF Projects 2016q1</a></li><li><a href="/wiki/Category:WMF_Projects_2016q2" title="Category:WMF Projects 2016q2">WMF Projects 2016q2</a></li><li><a href="/wiki/Category:WMF_Projects_2016q3" title="Category:WMF Projects 2016q3">WMF Projects 2016q3</a></li><li><a href="/wiki/Category:WMF_Projects_2016q4" title="Category:WMF Projects 2016q4">WMF Projects 2016q4</a></li><li><a href="/wiki/Category:WMF_Projects_2017q1" title="Category:WMF Projects 2017q1">WMF Projects 2017q1</a></li><li><a href="/wiki/Category:WMF_Projects_2017q2" title="Category:WMF Projects 2017q2">WMF Projects 2017q2</a></li><li><a href="/wiki/Category:WMF_Projects_2017q3" title="Category:WMF Projects 2017q3">WMF Projects 2017q3</a></li><li><a href="/wiki/Category:WMF_Projects_2017q4" title="Category:WMF Projects 2017q4">WMF Projects 2017q4</a></li><li><a href="/wiki/Category:WMF_Projects_2018q1" title="Category:WMF Projects 2018q1">WMF Projects 2018q1</a></li><li><a href="/wiki/Category:WMF_Projects_2018q2" title="Category:WMF Projects 2018q2">WMF Projects 2018q2</a></li><li><a href="/wiki/Category:WMF_Projects_2018q3" title="Category:WMF Projects 2018q3">WMF Projects 2018q3</a></li><li><a href="/wiki/Category:WMF_Projects_2018q4" title="Category:WMF Projects 2018q4">WMF Projects 2018q4</a></li><li><a href="/wiki/Category:WMF_Projects_2019q1" title="Category:WMF Projects 2019q1">WMF Projects 2019q1</a></li><li><a href="/wiki/Category:WMF_Projects_2019q2" title="Category:WMF Projects 2019q2">WMF Projects 2019q2</a></li><li><a href="/wiki/Category:WMF_Projects_2019q3" title="Category:WMF Projects 2019q3">WMF Projects 2019q3</a></li><li><a href="/wiki/Category:WMF_Projects_2019q4" title="Category:WMF Projects 2019q4">WMF Projects 2019q4</a></li><li><a href="/wiki/Category:WMF_Projects_2020q1" title="Category:WMF Projects 2020q1">WMF Projects 2020q1</a></li><li><a href="/wiki/Category:WMF_Projects_2020q2" title="Category:WMF Projects 2020q2">WMF Projects 2020q2</a></li><li><a href="/wiki/Category:WMF_Projects_2020q3" title="Category:WMF Projects 2020q3">WMF Projects 2020q3</a></li><li><a href="/wiki/Category:WMF_Projects_2020q4" title="Category:WMF Projects 2020q4">WMF Projects 2020q4</a></li><li><a href="/wiki/Category:WMF_Projects_2021q1" title="Category:WMF Projects 2021q1">WMF Projects 2021q1</a></li><li><a href="/wiki/Category:WMF_Projects_2021q2" title="Category:WMF Projects 2021q2">WMF Projects 2021q2</a></li><li><a href="/wiki/Category:WMF_Projects_2021q3" title="Category:WMF Projects 2021q3">WMF Projects 2021q3</a></li><li><a href="/wiki/Category:WMF_Projects_2021q4" title="Category:WMF Projects 2021q4">WMF Projects 2021q4</a></li><li><a href="/wiki/Category:WMF_Projects_2022q1" title="Category:WMF Projects 2022q1">WMF Projects 2022q1</a></li><li><a href="/wiki/Category:WMF_Projects_2022q2" title="Category:WMF Projects 2022q2">WMF Projects 2022q2</a></li><li><a href="/wiki/Category:WMF_Projects_2022q3" title="Category:WMF Projects 2022q3">WMF Projects 2022q3</a></li><li><a href="/wiki/Category:WMF_Projects_2022q4" title="Category:WMF Projects 2022q4">WMF Projects 2022q4</a></li><li><a href="/wiki/Category:WMF_Projects_2023q1" title="Category:WMF Projects 2023q1">WMF Projects 2023q1</a></li><li><a href="/wiki/Category:WMF_Projects_2023q2" title="Category:WMF Projects 2023q2">WMF Projects 2023q2</a></li><li><a href="/wiki/Category:WMF_Projects_2023q3" title="Category:WMF Projects 2023q3">WMF Projects 2023q3</a></li><li><a href="/wiki/Category:WMF_Projects_2023q4" title="Category:WMF Projects 2023q4">WMF Projects 2023q4</a></li><li><a href="/wiki/Category:WMF_Projects_2024q1" title="Category:WMF Projects 2024q1">WMF Projects 2024q1</a></li><li><a href="/wiki/Category:WMF_Projects_2024q2" title="Category:WMF Projects 2024q2">WMF Projects 2024q2</a></li><li><a href="/wiki/Category:WMF_Projects_2024q3" title="Category:WMF Projects 2024q3">WMF Projects 2024q3</a></li><li><a href="/wiki/Category:WMF_Projects_2024q4" title="Category:WMF Projects 2024q4">WMF Projects 2024q4</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 29 August 2024, at 23:32.</li> <li id="footer-info-copyright">Text is available under the <a rel="nofollow" class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-ShareAlike License</a>; additional terms may apply. Text in <a class="external text" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents">the Help: namespace</a> is available under the <a rel="nofollow" class="external text" href="https://creativecommons.org/publicdomain/zero/1.0/">Creative Commons CC0 License</a>. By using this site, you agree to the <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">Terms of Use</a> and <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy Policy</a>.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Project:About">About mediawiki.org</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Project:General_disclaimer">Disclaimers</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/www.mediawiki.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//m.mediawiki.org/w/index.php?title=Parsoid&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-57488d5c7d-4hcwx","wgBackendResponseTime":123,"wgDiscussionToolsPageThreads":[{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Technical_details","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Usage","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Installation","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Development","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Linking_a_developer_checkout_of_Parsoid-Development","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Running_the_tests-Development","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Converting_simple_wikitext-Development","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Debugging_Parsoid_(for_developers)-Development","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Continuous_Integration","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Release_build","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Technical_documents","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Links_for_Parsoid_developers-Technical_documents","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Links_for_Parsoid_deployers_(to_the_Wikimedia_cluster)-Technical_documents","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-See_also","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-External_links","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Contact","replies":[]}],"wgPageParseReport":{"discussiontools":{"limitreport-timeusage":"0.024"},"limitreport":{"cputime":"0.428","walltime":"0.593","ppvisitednodes":{"value":1936,"limit":1000000},"postexpandincludesize":{"value":26802,"limit":2097152},"templateargumentsize":{"value":4199,"limit":2097152},"expansiondepth":{"value":17,"limit":100},"expensivefunctioncount":{"value":28,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":15297,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 263.471 1 -total"," 42.75% 112.635 19 Template:Ll"," 35.45% 93.392 1 Template:Wikimedia_engineering_project_information"," 22.63% 59.635 1 Template:Feedback"," 22.20% 58.488 21 Template:Pagelang"," 20.98% 55.280 1 Template:Mbox"," 18.49% 48.717 39 Template:Translatable"," 8.39% 22.106 1 Template:Dir"," 5.30% 13.964 1 Template:Ptag"," 5.08% 13.381 4 Template:TNTN"]},"scribunto":{"limitreport-timeusage":{"value":"0.066","limit":"10.000"},"limitreport-memusage":{"value":1199495,"limit":52428800}},"cachereport":{"origin":"mw-api-int.codfw.main-5f67bcf949-v22ls","timestamp":"20241127012707","ttl":2592000,"transientcontent":false}}});});</script> <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","name":"Parsoid","url":"https:\/\/www.mediawiki.org\/wiki\/Parsoid","sameAs":"http:\/\/www.wikidata.org\/entity\/Q21198544","mainEntity":"http:\/\/www.wikidata.org\/entity\/Q21198544","author":{"@type":"Organization","name":"Contributors to Wikimedia projects"},"publisher":{"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":{"@type":"ImageObject","url":"https:\/\/www.wikimedia.org\/static\/images\/wmf-hor-googpub.png"}},"datePublished":"2009-04-16T12:04:21Z","dateModified":"2024-08-29T23:32:44Z","image":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/2\/2e\/Parsoid_HTML-RDFa_content_model.svg","headline":"application which can translate back and forth, at runtime, between MediaWiki's wikitext syntax and an equivalent HTML\/RDFa document model"}</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10