Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vs-code-pandoctools #42

Closed
3 tasks
kiwi0fruit opened this issue Sep 20, 2019 · 2 comments
Closed
3 tasks

vs-code-pandoctools #42

kiwi0fruit opened this issue Sep 20, 2019 · 2 comments
Assignees

Comments

@kiwi0fruit
Copy link
Owner

  • First prepare this
  • Save file on run, start independent pandoctools CLI
  • Read Pandoctools path from user data
@kiwi0fruit kiwi0fruit self-assigned this Sep 20, 2019
@kiwi0fruit kiwi0fruit mentioned this issue Sep 20, 2019
16 tasks
@kiwi0fruit
Copy link
Owner Author

ARCHIVE:

Fix MPP

CONTRIBUTING

Later

Reusing MPP in another package / from outside of Atom

~/.atom/styles.less:

@import './packages/pandoctools/styles/mpp.less';
// I guess this can be automatical ^^

@main-font: "Libertinus Serif", serif;

.markdown-preview-plus() {
  .pandoctools();
}

~/.atom/packages/pandoctools/styles/pandoctools.less:

@main-font: "Segoe UI", sans-serif;

.pandoctools() {
  .sourceCode {
    background-color: hsl(180, 24%, 90%) !important;
  }
  * {
    color: blue !important;
  }
  body {
    font-family: @main-font;
  }
}

~/.atom/packages/markdown-preview-plus/styles-client/less-api.less:

.markdown-preview-plus() {}
@import (optional, reference) '../../../styles.less';
.markdown-preview-plus();
  // if `pandoctools_integration` package option:
  //     if file `api-pandoctools.less` not exists:
  //         create file `api-pandoctools.less` from template
  //         (with abs path to ~/.atom/packages/atom-pandoctools/styles.less)
  //     styles.push(getClientStyle('api-pandoctools.less'))
  // if file `api-styles.less` not exists:
  //     create file `api-styles.less` from template
  //     (with abs path to ~/.atom/styles.less)
  // styles.push(getClientStyle('api-styles.less'))

@kiwi0fruit
Copy link
Owner Author

closed in favor of #28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant