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

[Feature request] Import external .css and .js file affecting exporting into .pdf #130

Open
haxpor opened this issue Mar 28, 2017 · 1 comment

Comments

@haxpor
Copy link

haxpor commented Mar 28, 2017

Hey thank you for great tool! I use it to create document based on markdown.

I use a lot of code style as mostly I do document about technical stuff.
One thing is that when the code block is long that it needs to scroll to the right, then scrollbar along x-axis will show. This is not the result I want as it shows scrollbar in result .pdf file, and not all code is showed.

I think it might be better for user to be able to modify some html tag i.e. code, pre, etc to insert the proper behavior they might need which is different from the default one. So in this case, I can insert things like word-wrap, word-break, white-space to ensure all code is showed when I do export.

@haxpor
Copy link
Author

haxpor commented Apr 3, 2017

Workaround: I found a way to modify css. Relevant stylesheet files .css are packed inside app.asar file extension as you can find it under /Applications/EME.app/Contents/Resources.

Then follow the following steps

  • Install asar from NPM via npm install --global asar.
  • Extract app.asar to modify our target .css file by cd to above path, then execute asar extract app.asar app. This will extract into app folder.
  • Go inside app folder then modify relevant files.
  • Move original app.asar to somewhere else first.
  • Pack app to be used as new app.asar by executing asar pack app app.asar
  • Restart EME program. It should reflect new updates in your modified .css already.

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