No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

2025-02_psk-jvm-item.md 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. Title: PSKOV 2 for JVM
  2. Date: 2025-02-11 00:00
  3. Category: News
  4. Slug: psk-jvm-item
  5. Lang: en
  6. ![splash][splash]
  7. # Seperate pages' generation
  8. In January I implemented half of the functionality of original
  9. PSKOV: generation of separate HTML pages from Markdown.
  10. Both PSKOV 1 and PSKOV 2 produce HTML files that look the same in web browsers.
  11. However, the contents of the generated HTML files differ because PSKOV 1 uses
  12. [Showdown][showdown] to convert Markdown to HTML, whereas PSKOV 2 uses
  13. [intellij-markdown][intellij-markdown].
  14. Let's see how the generated HTML files compare. Suppose we have the following
  15. page in Markdown:
  16. ```
  17. Simple page in **Markdown** to convert to **HTML**.
  18. | № | Parser | Language |
  19. |---|--- |--- |
  20. | 1 | [Showdown][showdown] | JavaScript |
  21. | 2 | [intellij-markdown][intellij-markdown] | Kotlin |
  22. [intellij-markdown]: https://github.com/JetBrains/markdown
  23. [showdown]: https://github.com/showdownjs/showdown
  24. ```
  25. PSKOV 1 converts the aforementioned Markdown to the following HTML:
  26. ```
  27. <p>Simple page in <strong>Markdown</strong> to convert to <strong>HTML</strong>.</p>
  28. <table>
  29. <thead>
  30. <tr>
  31. <th>№</th>
  32. <th>Parser</th>
  33. <th>Language</th>
  34. </tr>
  35. </thead>
  36. <tbody>
  37. <tr>
  38. <td>1</td>
  39. <td><a href="https://github.com/showdownjs/showdown">Showdown</a></td>
  40. <td>JavaScript</td>
  41. </tr>
  42. <tr>
  43. <td>2</td>
  44. <td><a href="https://github.com/JetBrains/markdown">intellij-markdown</a></td>
  45. <td>Kotlin</td>
  46. </tr>
  47. </tbody>
  48. </table>
  49. ```
  50. PSKOV 2:
  51. ```
  52. <body><p>Simple page in <strong>Markdown</strong> to convert to <strong>HTML</strong>.</p><table><thead><tr><th>№</th><th>Parser</th><th>Language</th></tr></thead><tbody><tr><td>1</td><td><a href="https://github.com/showdownjs/showdown">Showdown</a></td><td>JavaScript</td></tr><tr class="intellij-row-even"><td>2</td><td><a href="https://github.com/JetBrains/markdown">intellij-markdown</a></td><td>Kotlin</td></tr></tbody></table></body>
  53. ```
  54. Here's how both HTML files are rendered in web browsers:
  55. ![result][result]
  56. Identical rendering of different files. My internal
  57. perfectionist is outraged by such a disrepancy. And my internal
  58. pragmatist thinks this hardly deserves such an attention.
  59. # February
  60. In February I'm going to update the cross-language dialect's translator to produce Context.
  61. [intellij-markdown]: https://github.com/JetBrains/markdown
  62. [result]: ../../images/2025_psk-jvm-item_result.png
  63. [showdown]: https://github.com/showdownjs/showdown
  64. [splash]: ../../images/2025_psk-jvm-item.png