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

HTML Links to External Stylesheets #75

Closed
richardy706 opened this issue May 21, 2021 · 2 comments
Closed

HTML Links to External Stylesheets #75

richardy706 opened this issue May 21, 2021 · 2 comments
Assignees

Comments

@richardy706
Copy link

The HTML conversion works very well but the styles are in external stylesheets on the local computer. Therefore the HTML does not render styles when transferred to another computer. Is there a way to have the style rules embedded in the document?

Version: 3.1.2

@manuth
Copy link
Owner

manuth commented Sep 11, 2021

Hello
Thanks for your interest in MarkdownConverter.
I'll have a closer look on how to handle style-sheets during the next few days.

Sorry for letting you wait for such a long time

@manuth manuth self-assigned this Sep 12, 2021
@manuth manuth added this to the Major Release December 2020 milestone Sep 12, 2021
@manuth
Copy link
Owner

manuth commented Sep 12, 2021

I put some thoughts into this and came up with a concept for for improving the treatment of stylesheets and javascript-files.

I'm planning to add an option StyleSheetBehavior and ScriptBehavior (let me know if you guys can make up a more suitable name) where users can set the treatment of Relative files, Absolute files and Links.

Users will be able to choose between Link (adding a reference to the file) or Scrape/Embed or Include (which one sounds the best to you?) (copying the code of the corresponding file into the document) and Default (letting MarkdownConverter decide, which basically add a reference to all links and copy the source of all files into the document).

Additionally, the StyleSheets and Scripts-option will allow the user to override MarkdownConverters behavior - allowing you to gain control on MarkdownConverter's asset-treatment of each file.

Let me know if there is something I've missed or something I could improve regarding this concept.

@manuth manuth linked a pull request Sep 12, 2021 that will close this issue
@manuth manuth closed this as completed Sep 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants