Texto de prueba
Tutorial para aprender a escribir en este sitio. Copiado del artículo original.
Footnote:
Text that links to footnote has [^1]
Footnote text (at the bottom of the article):
[^1]: From : [https://www.markdownguide.org/extended-syntax/#footnotes](https://www.markdownguide.org/extended-syntax/#footnotes)
Text that links to footnote has 1
Inline styles:
Inline styles | When rendered |
---|---|
**strong** |
strong |
__strong__ |
strong |
*emphasis* |
emphasis |
_emphasis_ |
emphasis |
***strong & emphasis*** |
strong and emphasis |
`code` |
code |
~~strikethrough~~ [^7] |
|
++inserted text++ [^7] |
++inserted text++ |
==marked text== [^7] |
==marked text== |
subscript~2~text [^7] |
subscript |
superscript^6^text [^7] |
superscript^6^text |
:joy: [^2] |
:joy: |
<cite>HTML tag</cite> [^3] |
HTML tag |
\(LaTeX\) [^4] |
(LaTeX) |
[Link](https://example.com) |
Link |
To use HTML tags in hugo, add following to
hugo.toml
[markup] [markup.goldmark] [markup.goldmark.renderer] unsafe = true
To use deleted text, inserted text, mark text, subscript, and superscript elements in Markdown, add following to
hugo.toml
[markup] [markup.goldmark] [markup.goldmark.renderer] unsafe = true [markup.goldmark.extensions] strikethrough = false [markup.goldmark.extensions.extras] [markup.goldmark.extensions.extras.insert] enable = true [markup.goldmark.extensions.extras.delete] enable = true [markup.goldmark.extensions.extras.mark] enable = true [markup.goldmark.extensions.extras.subscript] enable = true [markup.goldmark.extensions.extras.superscript] enable = true
Headings:
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Table of Contents returns an unordered list of level 2 and level 3 headings by default. You can adjust this in your site configuration. [^6]
[markup]
[markup.tableOfContents]
endLevel = 3
ordered = false
startLevel = 2
Blockquote:
> First line
> Another line (To keep the quote together, blank lines inside the quote must contain the > character.)
>
> > Nested line
>
> Last line (The space between the > and the quoted text is optional.)
First line Another line (To keep the quote together, blank lines inside the quote must contain the > character.)
Nested line
Last line (The space between the > and the quoted text is optional.)
Table:
| Left-Aligned | Center Aligned | Right Aligned |
| :------------ | :-------------: | ------------: |
| col 3 is | some wordy text | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
Left-Aligned | Center Aligned | Right Aligned |
---|---|---|
col 3 is | some wordy text | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
Lists:
* Unordered list item 1.
* Unordered list item 2.
1. ordered list item 1.
2. ordered list item 2.
+ sub-unordered list item 1.
+ sub-unordered list item 2.
+ [x] something is DONE.
+ [ ] something is NOT DONE.
- Unordered list item 1.
- Unordered list item 2.
- ordered list item 1.
- ordered list item 2.
- sub-unordered list item 1.
- sub-unordered list item 2.
- something is DONE.
- something is NOT DONE.
Syntax Highlighting without backticks:
dt = {5:4, 1:6, 6:3}
sorted_dt = {key: value for key, value in sorted(dt.items(), key=lambda item: item[1])}
print(sorted_dt)
Syntax Highlighting with backticks:
var num1, num2, sum
num1 = prompt("Enter first number")
num2 = prompt("Enter second number")
sum = parseInt(num1) + parseInt(num2) // "+" means "add"
alert("Sum = " + sum) // "+" means combine into a string
Syntax Highlighting with highlight
shortcode
{{/*< highlight css "linenos=table,linenostart=5" >*/}}
/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #55595ebb }
{{/*< /highlight >*/}}
|
|
Change Highlight color in _syntax.scss
Line 5
|
|
Images can also be implemented via figure shortcode. It extends in-built hugo shortcode to convert images to webp format.2
{ {< figure src="images/928-600x400.jpg" alt="A WEBP converted image" caption="A WEBP converted image" class="webp" loading="lazy" >} }
Mermaid
flowchart TD A["Cron Job Starts at 9 AM"] --> B["Loop Through Each Newspaper"] B --> C["Get Newspaper URL and Upload Image"] C --> D["Convert Image to Base64 & Calculate Hash"] D --> E["Analyze Image Using LLM"] E -- If Success --> F["Save Newspaper Data"] F --> G["Perform Google Search for Headlines"] & I["Check If Newspaper Already Exists"] G --> H["Store Headline Search Results in Database"] I -- If Exists --> J["Compare Hash and Update If Needed"] I -- If New --> K["Create New Newspaper Entry"] J --> L["Update Existing Entry in Database"] K --> M["Save New Entry to Database"] L --> N["Save or Update Search Results"] M --> N N --> O["End of Newspaper Process"] O -- If All Newspapers Processed --> P["Cron Job Complete"]
-
From : Extended Syntax | Markdown Guide [^2]: To enable emoji support add
enableEmoji = true
in hugo.toml. Hugo Docs [^3]: Hugo’s default renderer (Goldmark) cannot render HTML tags by default. ↩︎ -
the-figure-shortcode [^6]: Customize Table of Contents. Hugo Docs [^7]: To use mentioned features. [Hugo Docs ↩︎