-
Notifications
You must be signed in to change notification settings - Fork 35
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
Add reference to external libraries in HTML #35
Comments
Hi @Stephanevg - sorry I forgot that I needed to respond 😞. There's nothing currently that will permit this but the foundations are there. We would need to add support for specifying external stylesheets with the |
When defining styles, I have added a PS> $doc = Document 'Test' { Style 'My Style' }
PS> $doc.Styles.GetEnumerator() | ? { $_.Value.Name -eq 'My Style' } | %{ $_.Value }
Id : MyStyle
Name : My Style
Font : {Calibri, Candara, Segoe, Segoe UI...}
Size : 11
Color : 000000
BackgroundColor :
Bold : False
Italic : False
Underline : False
Align : Left
ClassId : MyStyle
Hidden : False You can override this property when defining a style like so: PS> $doc = Document 'Test' { Style 'My Style' -ClassId 'CssClass' }
PS> $doc.Styles.GetEnumerator() | ? { $_.Value.Name -eq 'My Style' } | %{ $_.Value }
Id : MyStyle
Name : My Style
Font : {Calibri, Candara, Segoe, Segoe UI...}
Size : 11
Color : 000000
BackgroundColor :
Bold : False
Italic : False
Underline : False
Align : Left
ClassId : CssClass
Hidden : False I'll update the code to ensure that the To support referencing external libraries, we could add an Html specific export option (not sure on the name) to add an external reference - something like this: Export-Document -Options @{ CssLink = 'http://mycsshost.com/stylesheet.css' } When specified, Questions:
|
Hi Iain,
Is it possible to add a reference to an external file in the HTML format, like a Jquery or a bootstrap reference?
Also, is it possible to add a class to a specefic HTML section/element?
that would
The text was updated successfully, but these errors were encountered: