#markdown #code-formatting #github-flavored-markdown
#markdown #форматирование кода #со вкусом github-markdown
Вопрос:
Я хочу пометить как code
некоторые слова внутри ячейки таблицы markdown.
На примере:
| Verb | Description | Aliases |
| --- | --- | --- |
| `tag` | return the current state tag | `currentState` |`
| `exec`| transact to an output state | `goout` `setOutputState` `gotoOutputState` `nextOutputState` |
| `next` | transact to an input state | `goto` `setInputState` `gotoInputState` `nextInputState` |
| `say` | send a text message to user | `ask` `prompt` |
| `tts` | send a speech message to user | |
| `asr` | s the incoming message a speech? | |
| `match` | match a pattern/intent | |
| `take` | save the pattern match info | |
| `slots` | return the slots of a pattern matched | |
| `setvar` | write a dialog unit variable | |
| `getvar` | read a dialog unit variable | |
| `delvar` | delete a dialog unit variable | |
| `delvars` | delete all dialog unit variables | |
| `chatid` | get the current chat id | |
| `setChat` | set the current chat id | |
| `startTimeout` | start a timeout handler | |
| `stopTimeout` | stop the timout handler | |
| `getCounterTimeout` | how many timeout are run? | |
| `setDefaultTimeoutTime` | set the default timeout in msecs | |
| `isSessionActive` | there is a dialog running for current id? | `isDialogActive` |
Я получил странное форматирование: некоторые слова, как tag
, не отображаются в формате кода. Смотрите живую демонстрацию:https://gist.github.com/solyarisoftware/305008757df96eb71cc1c7d7683fc580
Почему? Где я ошибаюсь?
Комментарии:
1. Для меня выглядит нормально. Обратитесь к этому снимку экрана
2. Спасибо, я добавил скриншот. Странно, не так ли?
3. Я вообще не вижу проблемы. Хотя, поскольку каждая вторая строка таблицы имеет серый фон, это затрудняет различение слегка отличающегося оттенка серого фона в промежутках кода. Однако все области кода должным образом проанализированы как таковые. Вы всегда можете воспользоваться функцией «просмотреть исходный код» вашего браузера или «проверить» и убедиться, что все разделы кода действительно заключены в
<code>
теги.