New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

cyonix

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cyonix

A lightweight markup language inspired by Markdown

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
0
Created
Source

Cyonix Documentation

npm version

Cyonix is meant for browser use and is not compatible within a Node.js environment.

Cyonix needs cSS from this style sheet: https://cdn.jsdelivr.net/npm/cyonix@1.0.3/styles.min.css

https://cdn.jsdelivr.net/npm/cyonix@1.0.3/cyonix.min.js

Cyonix is a markup language inspired by Markdown, designed for simplicity and flexibility.

Functions

parseCY(cyMarkup)

The parseCY function converts Cyonix markup into HTML.

Syntax Support

  • Headings

    # Heading 1
    ## Heading 2
    ### Heading 3
    
  • Lists

    * Item 1
    * Item 2
    1. Ordered Item 1
    2. Ordered Item 2
    
  • Checkboxes

    * [ ] Unchecked item
    * [x] Checked item
    
  • Blockquotes

    >> This is a blockquote
    
  • Links

    {Link Text}(https://example.com)
    
  • Images

    ![Alt Text]({image-url})
    
  • Code Blocks and Inline Code

    Code block

    
    Inline `code`
    
    
  • Horizontal Rule

    ---
    
  • Tables

    | Header 1 | Header 2 |
    | -------- | -------- |
    | Cell 1   | Cell 2   |
    
  • Formatting

    • Bold: <<Bold Text>>
    • Italic: [[Italic Text]]
    • Strikethrough: ~~Strikethrough Text~~
    • Keyboard Input: [Keyboard Input]

renderCY()

The renderCY function retrieves input from a textarea and renders the parsed HTML output.

Example Usage

<textarea id="cy-input">
# Welcome to Cyonix

* [ ] Task 1
* [x] Task 2
</textarea>

<button onclick="renderCY()">Render Output</button>

<div id="html-output">
<!-- Rendered HTML output will appear here -->
</div>

Example

Here's a simple example of Cyonix markup and its rendered HTML:

Cyonix Markup

# Welcome to Cyonix

* [ ] Task 1
* [x] Task 2

Rendered HTML

<h1>Welcome to Cyonix</h1>
<ul>
  <li><input type="checkbox"> Task 1</li>
  <li><input type="checkbox" checked> Task 2</li>
</ul>

This documentation provides a quick overview of Cyonix syntax and usage. For more detailed information, refer to the specific functions and examples provided.

FAQs

Package last updated on 08 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts