# Нужно включить PGN (нотация шахматной партии) в пост

**URL:** https://meta.discourse.org/t/need-to-include-pgn-chess-game-notation-in-a-post/157376
**Category:** Feature
**Tags:** pr-welcome
**Created:** [10.Июль.2020 16:23:32 UTC](https://meta.discourse.org/t/need-to-include-pgn-chess-game-notation-in-a-post/157376 "2020-07-10T16:23:32Z")
**Posts on this page:** 3
**Page:** 2

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [19.Август.2020 07:05:20 UTC](https://meta.discourse.org/t/need-to-include-pgn-chess-game-notation-in-a-post/157376/26 "2020-08-19T07:05:20Z")

</div>

Возможно, консоль вашего браузера поможет вам отладить проблему?  
Но я не думаю, что CSS — это тот скрипт, который вы ищете; вам нужно больше, чем просто рендеринг.  
При изучении структуры файлов компонента

> [@Structure of themes and theme components](https://meta.discourse.org/t/structure-of-themes-and-theme-components/60848):
>
> Discourse supports [native themes](https://meta.discourse.org/t/native-theme-support/47494/26) that can be sourced from a .tar.gz archive or from a remote git repository including [private repositories](https://meta.discourse.org/t/how-to-source-a-theme-from-a-private-git-repository/82584). An example theme is at: [GitHub - discourse/discourse-simple-theme: Sam's simple discourse theme · GitHub](https://github.com/SamSaffron/discourse-simple-theme) The git repository will be checked for updates ([once a day](https://github.com/discourse/discourse/blob/main/app/jobs/scheduled/check_out_of_date_themes.rb)), or by using the Check for Updates button. When changes are detected the Check for Updates button will change to the Update to Latest. [image] To create a theme you need to foll…

вам придётся встраивать свои скрипты (.js) в файл (header).html.

Я бы порекомендовал посмотреть на код и структуру, скажем, [DiscoTOC](https://meta.discourse.org/t/discotoc-automatic-table-of-contents/111143) и

 ![](https://media.tenor.com/videos/befea4c1d4c3de26d88493b69d733be9/mp4)

Я согласен с

> [@merefield](#):
>
> вам нужно найти энтузиаста, готового освоить основы и потратить время на реализацию, или нанять кого-то в #Marketplace

энтузиаст (я, давным-давно, немного поработал с Карповым 🤩)  
 готовый освоить основы  
 готовый потратить время на реализацию 😭

---

<div class="post-metadata">

### Author: ![KranthiKiranGude](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kranthikirangude/32/135387_2.png) [@KranthiKiranGude](https://meta.discourse.org/u/KranthiKiranGude)
#### Post date: [19.Август.2020 08:26:13 UTC](https://meta.discourse.org/t/need-to-include-pgn-chess-game-notation-in-a-post/157376/27 "2020-08-19T08:26:13Z")

</div>

В консоли браузера не зафиксировано ошибок.  
Однако пост не распознаёт элемент:

```plaintext
<div class="cbreplay">

```

В исходном коде страницы я вижу только тег div без какого-либо класса.  
Есть ли другие способы отладки, чтобы выяснить точную причину проблемы?

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [20.Август.2020 17:45:05 UTC](https://meta.discourse.org/t/need-to-include-pgn-chess-game-notation-in-a-post/157376/28 "2020-08-20T17:45:05Z")

</div>

Конвейер рендеринга по необходимости удаляет определённые HTML-сущности и атрибуты.

Я бы рекомендовал начать с компонента темы, например [discourse-totp-markdown](https://github.com/discourse/discourse-totp-markdown),  
который имеет схожий функционал с тем, что вы пытаетесь реализовать.

[Previous page](https://meta.discourse.org/t/need-to-include-pgn-chess-game-notation-in-a-post/157376.md?page=1)
