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] strikethrough
++inserted text++[^7] ++inserted text++
==marked text==[^7] ==marked text==
subscript~2~text[^7] subscript2text
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.
  1. ordered list item 1.
  2. 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 >*/}}
5
/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #55595ebb }

Change Highlight color in _syntax.scss Line 5

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
html {
 background: $light-grey;
 line-height: 1.6;
 letter-spacing: .06em;
 scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
 color: text;
 font-family: fonts;
}

pre,
code,
pre tt {
 font-family: $code-fonts;
}

pre {
 padding: .7em 1.1em;
 overflow: auto;
 font-size: .9em;
 line-height: 1.5;
 letter-spacing: normal;
 white-space: pre;
 color: #eee;
 background: $midnightblue;
 border-radius: 4px;
 // -webkit-overflow-scrolling: touch;

code {
 padding: 0;
 margin: 0;
 background: $midnightblue;
 }
}

code {
 color: #eee;
 background: $highlight-grey;
 border-radius: 3px;
 padding: 0 3px;
 margin: 0 4px;
 word-wrap: break-word;
 letter-spacing: normal;
}

blockquote {
 border-left: .25em solid;
 margin: 1em;
 padding: 0 1em;
 font-style: italic;

cite {
 font-weight: bold;
 font-style: normal;

```
&::before {
  content: "—— ";
}
```

}
}

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"]

  1. 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. ↩︎

  2. the-figure-shortcode [^6]: Customize Table of Contents. Hugo Docs [^7]: To use mentioned features. [Hugo Docs ↩︎