Skip to content

Commit a77ff2d

Browse files
committed
fixes #841, docs
1 parent 61dab93 commit a77ff2d

2 files changed

Lines changed: 11 additions & 14 deletions

File tree

Install.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Mongo – можно 2.6+. Линукс-пакет или, если у вас Ma
1919
Если через MacPorts, то:
2020
```
2121
sudo port install mongodb
22-
sudo port load mondogb
22+
sudo port load mongodb
2323
```
2424

2525
## 3. Клонируйте репозитарий
@@ -54,12 +54,15 @@ sudo port install nginx +debug+gzip_static+realip+geoip
5454
sudo port load nginx
5555
```
5656

57-
Под brew nginx ставить так:
57+
## 6. npm install
58+
59+
В директории, в которую клонировали, запустите:
60+
5861
```
59-
brew install nginx-full --with-debug --with-geoip --with-realip --with-mp4
62+
npm install
6063
```
6164

62-
## 6. Конфигурация Nginx с нуля
65+
## 7. Конфигурация Nginx с нуля
6366

6467
Если в системе ранее не стоял nginx, то поставьте его.
6568

@@ -90,7 +93,7 @@ gulp config:nginx --prefix /opt/local/etc/nginx --root /js/javascript-nodejs --e
9093

9194
Такое имя хоста стоит в конфигурации Nginx.
9295

93-
## 6.1. Если Nginx у вас уже стоит
96+
## 7.1. Если Nginx у вас уже стоит
9497

9598
Если уже есть nginx, то сделайте резервную копию всех его конфигов.
9699

@@ -107,13 +110,6 @@ gulp config:nginx --prefix /opt/local/etc/nginx --root /js/javascript-nodejs --e
107110

108111
Перезапустите Nginx. Проверьте, что ваши предыдущие проекты работают.
109112

110-
## 7. `npm install`
111-
112-
В директории, в которую клонировали, запустите:
113-
114-
```
115-
npm install
116-
```
117113

118114
## 8. База
119115

@@ -158,4 +154,3 @@ PLUNK_REMOTE_OFF=1 gulp tutorial:import --root /js/javascript-tutorial
158154

159155
Если что-то не работает -- [пишите issue](https://github.com/iliakan/javascript-nodejs/issues/new).
160156

161-

modules/markit/plugins/blockTags/iframe.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ module.exports = function(md) {
2727

2828
let src = token.blockTagAttrs.src;
2929

30+
let iframeId = options.html && token.blockTagAttrs.id ? ` id="${token.blockTagAttrs.id}"` : '';
31+
3032
if (!src) {
3133
return `<div class="markdown-error">${t('markit.error.attr_required', {attr: 'src'})}</div>`;
3234
}
@@ -69,7 +71,7 @@ module.exports = function(md) {
6971

7072
return `<div class="code-result">
7173
<div class="code-result__toolbar toolbar">${toolbarHtml}</div>
72-
<iframe class="code-result__iframe" data-trusted="${trusted}" style="height:${height}px" src="proxy.php?url=https%3A%2F%2Fwww.github.com%2F%3Cspan+class%3D"pl-s1">${src}"></iframe>
74+
<iframe${iframeId} class="code-result__iframe" data-trusted="${trusted}" style="height:${height}px" src="proxy.php?url=https%3A%2F%2Fwww.github.com%2F%3Cspan+class%3D"pl-s1">${src}"></iframe>
7375
</div>`;
7476

7577
};

0 commit comments

Comments
 (0)