Version 2.4
Welcome to the full test template for the github md import feature of AEM. This document covers all the styles availalbe and how to implement. Note: when loading github url into your page, it may take a number of tries to get the content to refresh. I am working with IT to resolve the bug. If you have just done an update in GitHub, it's best to wait for a few minutes to make sure you sync the latest version.
Make sure you don't use the single # for any headers. Only the title of your article should be an H1. This isn't just a visual thing, this will impact your SEO score in google. Always start with the ##.
*This text will be italic*
_This will also be italic_
**This text will be bold**
__This will also be bold__
_You **can** combine them_
This text will be italic This will also be italic
This text will be bold This will also be bold
You can combine them
Superscript and Subscript doesn't seem to work at the moment.
Superscript
H~2~O
Subscript
X^2^
Superscript example: H2O
Subscript example: X^2^
💡 🖥️ :d
[Intel](https://www.intel.com).
Example: My favorite company is Intel.
mailto: (note for spam reasons, we discourage use of email links) [email protected]
This doesn't work with our template. We have requested some code updates so that block quotes actually render properly on articles. I will update this file once that is done.
> We're living the future so
> the present is our past.
We're living the future so the present is our past.
Another Item we are exploring is the ability to call the css that is used on the site. This isn't working yet. I will update once we have the functionality in place. There are two options IT is exploring. We have requested that IT add this feature so we can call certain css properties into markdown.
{: .greyHighlight} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Footnotes aren't working as expected. I have raised a ticket with IT to see if they can enable this feature.
Here's a sentence with a footnote. [^1]
[^1]: This is the footnote.
Here's a sentence with a footnote. 1
This expression
When this is a full expression, it works fine. $$ \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt,. $$
Adding code into your sentence is simple.
`this is your code`
Example
Some inline code
if you need to put inside a sentence.
If you have javascript:
// An highlighted block
var foo = 'bar';
A very common one on the DevZone is bash
export I_MPI_ROOT=/opt/intel/oneapi/lib/intel64
export PATH=${I_MPI_ROOT}/libfabric/bin:${I_MPI_ROOT}/bin:$PATH
export LD_LIBRARY_PATH=${I_MPI_ROOT}/libfabric:${I_MPI_ROOT}:$LD_LIBRARY_PATH
export FI_PROVIDER_PATH=${I_MPI_ROOT}/libfabric
Expand to see the full list of available skins
- plaintext
- abap
- actionscript
- apacheconf
- applescript
- aspnet
- bash
- basic
- c
- coffeescript
- cpp
- csharp
- css
- d
- dart
- diff
- docker
- erlang
- fortran
- fsharp
- git
- go
- groovy
- haskell
- html
- http
- ini
- java
- javascript
- lua
- makefile
- markdown
- matlab
- nginx
- objectivec
- pascal
- perl
- php
- prolog
- python
- puppet
- r
- ruby
- rust
- sas
- scala
- scheme
- sql
- swift
- twig
- vim
- xmlxhtml
- yaml
- First item
- Second item
- Third item
- Fourth item
This will also do the same thing
- First item
- Second item
- Third item
- Fourth item
This will also do the same thing
- First item
- Second item
- Third item
- Fourth item
Most of the time a MD editor will try to fix your list numbering You can also indent by adding a few spaces.
An example of a horizontal rule
***
- First item
- Second item
- Third item
- Fourth item
Split Lists
- list one - item 1
- list one - item 2
- sub item 1
- sub item 2
- list one - item 3
- list two - item A
- list two - item B
| Syntax | Description |
| ----------- | ----------- |
| Header | Title |
| Paragraph | Text |
Syntax | Description |
---|---|
Header | Title |
Paragraph | Text |
This does work within the article template. THe arrow is a bit large, but I will see if there is a way to get it updated. Code:
<details>
<summary>Click to expand!</summary>
<br>
1. A numbered
2. list
* With some
* Sub bullets
</details>
Example
Click to expand!
1. A numbered 2. list * With some * Sub bullets
To include an image from intel.com, you can do a relative link. Make sure you put all stock imagery, marketing imagery, logos, and photos of people in intel.com where we monitor licensing and expiry dates. You can use the relative path to your image.
![This is your Alt Text](/content/dam/www/central-libraries/us/en/images/oneapi-kits20211-4x3-rwd.png)
You can also choose to host your screenshots, diagrams, terminal window images in your repo. Just remember, you are now supporting the live site. Don't move or delete images without updating your article. Also, make sure to use the full github URL and not a relative path.
code graphis are not available for IDZ articles.
!define ICONURL https://raw.githubusercontent.com/tupadr3/plantuml-icon-font-sprites/v2.1.0
skinparam defaultTextAlignment center
!include ICONURL/common.puml
!include ICONURL/font-awesome-5/gitlab.puml
!include ICONURL/font-awesome-5/java.puml
!include ICONURL/font-awesome-5/rocket.puml
!include ICONURL/font-awesome/newspaper_o.puml
FA_NEWSPAPER_O(news,good news!,node) #White {
FA5_GITLAB(gitlab,GitLab.com,node) #White
FA5_JAVA(java,PlantUML,node) #White
FA5_ROCKET(rocket,Integrated,node) #White
}
gitlab ..> java
java ..> rocket
Go to the youtube video and copy the embed code. Just replace the iframe src url with your youtube video URL.
<div>
<div style="position:relative;padding-top:56.25%;">
<iframe src="https://www.youtube.com/embed/c7st0drv54U" frameborder="0" allowfullscreen
style="position:absolute;top:0;left:0;width:100%;height:100%;"></iframe>
</div>
</div>
You can also use this embed code for brightcove videos. Just replace the videoid= # in the embed code below To find the video ID, simply right click on the video on developer.intel.com and select Player Information. Video ID value is listed under Source.
<div style="position: relative; display: block; max-width: 900px;">
<div style="padding-top: 56.25%;">
<iframe src="https://players.brightcove.net/740838651001/default_default/index.html?videoId=6286027295001" allowfullscreen="" allow="encrypted-media" style="position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px; width: 100%; height: 100%;"></iframe>
</div>
</div>
multiple videos being added
<iframe src="https://drive.google.com/file/d/0B6m34D8cFdpMZndKTlBRU0tmczg/preview" frameborder="0" allowfullscreen="true"> </iframe> <iframe src="https://drive.google.com/file/d/0B6m34D8cFdpMZndKTlBRU0tmczg/preview" frameborder="0" allowfullscreen="true"> </iframe> <iframe src="https://drive.google.com/file/d/0B6m34D8cFdpMZndKTlBRU0tmczg/preview" frameborder="0" allowfullscreen="true"> </iframe>this is an anchor {: #hello-world}
{: #hello-world}
Note: a note is something that needs to be mentioned but is apart from the context. {: .note}
Can we embed code from github, here is a gitlab test.
<script src="https://gitlab.com/gitlab-org/gitlab-ce/snippets/1717978.js"></script>{::options parse_block_html="false" /}
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>Thanks to @gitlab for joining @RailsGirlsCluj! pic.twitter.com/NOoiqDWKVY
— RailsGirlsCluj (@RailsGirlsCluj) October 8, 2016
Footnotes
-
This is another footnote to go with the first. ↩