{{ bc([{url: '/articles/?lang='~selected_lang, text: "articles"|lang}]) }}

{{ pt.title }}

{{ html|raw }}
{% if pt.hasTableOfContents() %}
{{ "toc"|lang }}
{{ pt.getTableOfContentsHtml()|raw }}
{% endif %}
{% js %} ThemeSwitcher.addOnChangeListener(function(isDark) { var nodes = document.querySelectorAll('.md-image-wrap'); for (var i = 0; i < nodes.length; i++) { var node = nodes[i]; var alpha = parseInt(node.getAttribute('data-alpha'), 10); if (!alpha) continue; var div = node.querySelector('a > div'); if (!div) { console.warn('could not found a>div on this node:', node); continue; } var style = div.getAttribute('style'); if (isDark) { style = style.replace(/(a[\d]+x[\d]+)\.jpg/, '$1_dark.jpg'); } else { style = style.replace(/(a[\d]+x[\d]+)_dark\.jpg/, '$1.jpg'); } div.setAttribute('style', style); } }); {% endjs %}