![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
MD renderer for control aestetics using CSS and to include simple scroll animations.
This package have two purposes:
Organize the html
output of the markdown parser in classes that can be styled with css.
Add a markdown syntax for including scroll driven animations in the output.
The Project Webpage includes some demonstration files and better program description.
There are available multiple parsers for translating markdown content to html.
We used the markdown
package to include some class syntax in the output, and a
cascade stylesheet that can be modified to style the output.
Some features included are automatic numbering of sections and a signature at the end.
Ispired by the beautiful animations made by The New Yorker (see for example this article) I wanted to include them in my reports but without doing more than a markdown file as input.
The html generated is standalone and you share the images and some light text files, and the heavy task of render the animations is done in the destination browser.
Installation:
$ pip install markdown-scrolly
Make your markdown file mymarkdown.md
. Use one per directory.
Run the system command:
$ scrolly mymarkdown.md -s '<myname>'
The output is a file named mymarkdown.html
and some .css and .js files in a subdirectory resources
.
As a demo of the features, with this markdown file the output is this webpage
The markdown syntax is as usual.
<br/>
instead of <br>
).After the compilation you will have two .css files that defines the style of the document:
md.css
standard formatting (including tables and figures)anima_base.css
document-independent part of the animation styling
If theese files exists they are not overwritten by the command, so you can play with them
preserving the results on succesive runs.The only new flavour in markdown syntax is in the image insertion.
The syntax is:
![source_info | caption](img_filename){style}
|
separator, the whole []
field is caption{style}
is optional and applies to the img
element.If there are multiple images not separated by blank lines or other elements, they are grouped together.
The size of the images is indicated as percentage in height of the viewport.
The default is 30% but it can be changed anywhere in the document inserting a line with the directive.
[graph: 40]
This sets the size of all future graphs in the document or up to the next directive.
There is a whole syntax to include scroll-animations in the output.
Animations are composed by:
The animation syntax have three blocks delimited:
[animation: texts]
with a numbered list of the texts in the animation.markdown block
[animation: images]
is a numbered list of the images to use in the background.[animation: script]
is a table with the animation schedule.
As the animation runs on the scroll action, the animation time is measured in pages scrolled.#12f587
formatin, on, out off
in
(scrolling input) or on
(a glowing entrance) and go out with out
(scrolling) or off
(fading).
Every style property can be animated. The geometric animations are listed in mdn web docs[animation: end]
closes the animation declaration block.Here is a complete example included in de demo, that renders in this page (is the first animation).
[animation: texts]
1. __Southern Patagonian Ice Field__
2. ```markdown
Is the world's second largest contiguous extrapolar ice field.
It is the bigger of two remnant parts of the Patagonian Ice Sheet,
which covered all of southern Chile during the last glacial period,
locally called the Llanquihue glaciation.
```
3. ```markdown
__Perito Moreno Glacier__
![](imgs/640px-Perito_Moreno_Glacier_Patagonia_Argentina_Luca_Galuzzi_2005.jpeg)
```
[animation: images]
1. imgs/south_america.jpg
2. imgs/south_field.png
3. imgs/south_field_gm.jpg
4. imgs/perito.png
[animation: script]
| page | text | widthLeftTop | 1.SAmerica | 2.SF_remark | 3.S_Field | 4.Glacier_remark |
| ---- | ---- | ---------- | ------ | ------ | ------ | ------ |
| 0 | | | in | | | |
| 1 | 1 | 20 10 darkblue | | | | |
| 1.3 | | | | on | | |
| 2 | | | | | | |
| 2.2 | | | | | on;scale:.05;transform: translate(-30%,90%);| |
| 2.4 | | | off | off | | |
| 3 | 2 | 35 54 70 #000055 | | | scale:1;transform: translate(0%,0%); | |
| 4 | 3 | 36 54 #000055 | | | | on |
| 5 | | | | | out | out |
[animation: end]
As the output is an html file with some relative path files (css, images and javascript code)
the only browser that renders correctly relative paths is Firefox.
Other browsers blocks relative references for security reasons.
This can be solved using a local temporary server. It is easier than it sounds. In a terminal, go to the directory of the html file and run:
$ python -m http.server
And you can visualize the file from the browser in the address
localhost:8000/myfile.html
But for distribution purposes and to allow others to see the result without any configuration,
all the external information can be packaged in one file. So in one file are all the images, codes and styling.
That is why we included the command html-package
with the syntax:
$ html-package myfile.html
and outputs a file myfile_pkg.html
that is standalone with all the information needed inside.
Features:
This project is made by Willy Pregliasco from Bariloche, Argentina.
It is an earlier working version and every recommendation, objection and collaboration is welcomed.
You can add an issue to the Project.
Licensed under the MIT License - see the LICENSE file for details.
Willy Pregliasco, 10/2024
FAQs
MD renderer for control aestetics using CSS and to include simple scroll animations.
We found that markdown-scrolly demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.