klugjo / hexo-theme-alpha-dust

🌠 Original Futuristic Hexo Theme
http://www.codeblocq.com/assets/projects/hexo-theme-alpha-dust/
MIT License
314 stars 93 forks source link

code not appearing correctly #1

Closed dearfrankg closed 8 years ago

dearfrankg commented 8 years ago

blank lines do not appear correctly

klugjo commented 8 years ago

Hi,

Can you provide a screenshot or live example of your problem ? I will look into it

Thanks

dearfrankg commented 8 years ago
```js
var xs = [1, 2, 3, 4, 5]

// pure
xs.slice(0, 3)
// => [1, 2, 3]

xs.slice(0, 3)
//=> [1, 2, 3]

xs.slice(0, 3)
//=> [1, 2, 3]

// impure
xs.splice(0, 3)
//=> [1, 2, 3]

xs.splice(0, 3)
//=> [4, 5]

xs.splice(0, 3)
//=> []


![screen](https://cloud.githubusercontent.com/assets/36104/17353107/7a9b04e0-58f1-11e6-9a28-c7cd924c63aa.png)
dearfrankg commented 8 years ago

Multiline comments don't maintain consistent color...

```js
var hi = function(name) {
  return 'Hi ' + name
}

/** ignorant
 * unnecessarily wraps a function
 * forces a one argument signature
 */
var greeting = function(name) {
  return hi(name)
}

// enlightened
var greeting = hi


![screen ml-comments](https://cloud.githubusercontent.com/assets/36104/17354867/220ba4d2-5901-11e6-8f38-824733062725.png)
klugjo commented 8 years ago

I can't reproduce the issue, with your first example:

screen shot 2016-08-04 at 8 23 18 am

For the Multiline problem, the issue comes from Hexo itself, more precisely the code highlighting engine they are using:

screen shot 2016-08-04 at 8 28 18 am
klugjo commented 8 years ago

Node version and npm packages versions ?

dearfrankg commented 8 years ago

Works with landscape and again themes but not alpha-dust. This is strange. Thanks for taking the time to look into this.

node: v5.10.1 npm: 3.8.3

{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "hexo": {
    "version": "3.2.2"
  },
  "dependencies": {
    "hexo": "^3.2.0",
    "hexo-browsersync": "^0.2.0",
    "hexo-generator-archive": "^0.1.4",
    "hexo-generator-category": "^0.1.3",
    "hexo-generator-feed": "^1.2.0",
    "hexo-generator-index": "^0.2.0",
    "hexo-generator-sitemap": "^1.1.2",
    "hexo-generator-tag": "^0.2.0",
    "hexo-inject": "^1.0.0",
    "hexo-math": "^3.0.1",
    "hexo-renderer-ejs": "^0.2.0",
    "hexo-renderer-jade": "^0.3.0",
    "hexo-renderer-less": "^0.2.0",
    "hexo-renderer-marked": "^0.2.10",
    "hexo-renderer-sass": "^0.2.0",
    "hexo-renderer-stylus": "^0.3.1",
    "hexo-server": "^0.2.0",
    "hexo-tag-googlecharts": "^1.0.2"
  }
}

THEME: alpha-dust

screen shot 2016-08-03 at 10 51 23 pm

THEME: again

screen shot 2016-08-03 at 10 52 07 pm

dearfrankg commented 8 years ago

I ended up using the Jane theme. Thanks for your efforts anyway.

klugjo commented 8 years ago

This should be fixed by now. Closing this ticket.