xiangming / landscape-plus

针对中国大陆地区对hexo官方主题landscape进行优化。
http://xiangming.github.io/landscape-plus/
MIT License
508 stars 107 forks source link

markdown引用字体以及代码行数显示问题 #14

Closed bawn closed 10 years ago

bawn commented 10 years ago

引用字体有点大,不知道去哪里可以修改image

还有就是关于代码行号的问题

image2

源代码是这样的

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:_cellIdentifier
                                                            forIndexPath:indexPath];
    if (self.configureCellBlock) {
        @weakify(self);
        self.configureCellBlock(cell, [self.signal map:^id(NSArray *array) {
            @strongify(self);
            return [self itemAtIndexPath:indexPath];
        }]);
//有空行
    }
    return cell;
}

代码里如果有存在一段空行,行号显示就会存在问题,没有空格就正常

xiangming commented 10 years ago

14

@bawn 我根据你提供的源代码,没有发现行号有问题,你再查查其他原因。

bawn commented 10 years ago

//有空行 三个字你去掉看看 就是把那行留成空的,像这样

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:_cellIdentifier
                                                            forIndexPath:indexPath];
    if (self.configureCellBlock) {
        @weakify(self);
        self.configureCellBlock(cell, [self.signal map:^id(NSArray *array) {
            @strongify(self);
            return [self itemAtIndexPath:indexPath];
        }]);

    }
    return cell;
}
xiangming commented 10 years ago

2014-08-22_124234

@bawn 还是正常的,会不会是你修改到其他地方导致的?我使用的hexo 2.7.1和最新版landscape plus主题。

bawn commented 10 years ago

好的,那我自己看下,可能是我这边都饿问题

xiangming commented 10 years ago

@bawn 好的,多交流~