However, the audio portion of a video presentation is inaccessible to people who are deaf or hard of hearing unless it includes captions. Now, in the form of computer-based multimedia, video is increasingly utilized in distance learning and other web-based educational applications. Some html elements my be different now (in my experience just a few) so maybe you have to make small changes in the css.Video has played an important role in education for many decades. That should do it, now your markdown is being translated by Python-Markdown. To install the python renderer and the extension you just have to run pip install Markdown markdown-captions. The only extension that is not bundled with python-markdown is markdown_captions, the one that does the magic. Using all those extensions should generate a similar output to the default jekyll markdown rendere. That code just loads the extensions, reads temp.md file, converts it to html and writtes it to temp.html. Html_file = open("./_plugins/temp/temp.html", "w") Html_string = markdown.markdown(md_string, extensions=markdown_extensions, extension_configs =extension_configs) To use the converter we have to create a file called M圜onverter.py inside the _plugins folder and put this content inside: It is easy to use and has a ton of extensions. Now it is time to create our converter in python.You will also need to create a folder temp inside plugins.Īll that code does is to write all the content of the file we are processing to temp.md, call a python script, wait until it finishes, read temp.html, and return it as the output of the converter. Create a folder called _plugins and add a file called M圜onverter.rb with this content:Ĭlass Jekyll::Converters::Markdown::CustomProcessor Then, we have to create the CustomProcessor. You will have to add markdown: CustomProcessor to the _config.yml. The first step is to define a custom markdown processor. Basically this option changes the renderer for one made with python that is expandable, allowing you to instally extensions (there are a ton, markdown-captions for example) and expand it (it has an extension API). This option might seem complicated on the surface, but it is not at all and solves other problems that the Jekyll markdown renderer (Kramdown) has. Jekyll's serum!" Īn (external) image using an absolute URL: (change src="" to srcabs="") This is ()'s logo :Ī clickable image: (add url="" argument) This is ()'s logo :Īn image without a caption: This is ()'s logo : In Markdown, include an image using LiquidĪn image in /assets/images with a caption: This is ()'s logo :Ĭaption="This is Jekyll's logo, featuring Dr. Create _includes/image.htmlĬreate the image.html document in your _includes folder : Ģ.2. You'll need to create an image.html file in your _includes folder, and include it using Liquid in Markdown. Now that your images and captions are semantically correct, you can apply CSS as you wish to: Then run bundle install from your terminal window. One way to install jekyll-figure is to add gem "jekyll-figure" to your Gemfile in your plugins group. I've tried a couple of plugins doing this and my favourite is jekyll-figure. There are two semantically correct solutions to this question:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |