All Projects → selvinortiz → Craft.doxter

selvinortiz / Craft.doxter

Licence: mit
Markdown editor and parser for Craft CMS

Projects that are alternatives of or similar to Craft.doxter

Craft Coordinates
A twig filter for Craft CMS that gets the latitude and longitude from an address
Stars: ✭ 27 (-66.25%)
Mutual labels:  craftcms, craft-plugin
Plugin Installer
Composer installer for Craft CMS plugins
Stars: ✭ 22 (-72.5%)
Mutual labels:  craftcms, craft-plugin
Element Api
Create a JSON API/Feed for your elements in Craft.
Stars: ✭ 493 (+516.25%)
Mutual labels:  craftcms, craft-plugin
Awesome
A collection of awesome Craft CMS plugins, articles, resources and shiny things.
Stars: ✭ 449 (+461.25%)
Mutual labels:  craftcms, craft-plugin
Falcon
Enables Xkey / Hash-Two / Surrogate Key caching with Craft 2.x. Very experimental.
Stars: ✭ 14 (-82.5%)
Mutual labels:  craftcms, craft-plugin
Generator Craftplugin
generator-craftplugin is a Yeoman generator for Craft CMS plugins
Stars: ✭ 69 (-13.75%)
Mutual labels:  craftcms, craft-plugin
Geomate
GeoMate is a friend in need for all things geolocation. IP to geo lookup, automatic redirects (based on country, continent, language, etc), site switcher... You name it.
Stars: ✭ 19 (-76.25%)
Mutual labels:  craftcms, craft-plugin
Imager Craft
This plugin has been DEPRECATED. Check out Imager X instead.
Stars: ✭ 351 (+338.75%)
Mutual labels:  craftcms, craft-plugin
Craft Brief
Quick, easy, and customizable user-group notifications for Craft CMS.
Stars: ✭ 47 (-41.25%)
Mutual labels:  craftcms, craft-plugin
Commercemailer
ARCHIVED: For Craft Commerce. Makes it easy to create forms for sending carts, products and orders by email.
Stars: ✭ 8 (-90%)
Mutual labels:  craftcms, craft-plugin
Commerceregisteroncheckout
ARCHIVED: SEE README Allow user registration during Craft Commerce V1 checkouts.
Stars: ✭ 34 (-57.5%)
Mutual labels:  craftcms, craft-plugin
Oauth
(Deprecated) Helps developers consume OAuth-based web services in Craft plugins.
Stars: ✭ 38 (-52.5%)
Mutual labels:  craftcms, craft-plugin
Craft Neo
A Matrix-like field type for Craft CMS that uses existing fields
Stars: ✭ 387 (+383.75%)
Mutual labels:  craftcms, craft-plugin
Aws S3
Amazon S3 volume type for Craft CMS
Stars: ✭ 57 (-28.75%)
Mutual labels:  craftcms, craft-plugin
Seomatic
DEPRECATED A turnkey SEO implementation for Craft CMS 2.x that is comprehensive, powerful, and flexible
Stars: ✭ 366 (+357.5%)
Mutual labels:  craftcms, craft-plugin
Craft3 Templateselect
A fieldtype that allows you to select a template from the site templates folder.
Stars: ✭ 18 (-77.5%)
Mutual labels:  craftcms, craft-plugin
craft-recipe
A comprehensive recipe FieldType for Craft CMS that includes metric/imperial conversion, portion calculation, and JSON-LD microdata support
Stars: ✭ 23 (-71.25%)
Mutual labels:  craftcms, craft-plugin
Contact Form
Add a simple contact form to your Craft CMS site.
Stars: ✭ 294 (+267.5%)
Mutual labels:  craftcms, craft-plugin
Craft Emptycoalesce
Empty Coalesce adds the ??? operator to Twig that will return the first thing that is defined, not null, and not empty
Stars: ✭ 24 (-70%)
Mutual labels:  craftcms, craft-plugin
Vanillaforums
DEPRECATED Single Sign On plugin for VanillaForums/jsConnect and CraftCMS
Stars: ✭ 14 (-82.5%)
Mutual labels:  craftcms, craft-plugin

Doxter

Doxter

Lovingly crafted by Selvin Ortiz for Craft CMS

Doxter is a markdown plugin designed to improve the way you write documentation

For the Craft 3 version of this plugin, see craft-plugin-doxter.

Support Craft Plugin Development By Selvin Ortiz

Installation

  1. Download the latest release or clone this repo
  2. Extract the archive and place doxter inside your craft/plugins directory
  3. Install Doxter from the Control Panel @ Settings > Plugins
  4. Adjust plugin settings from the Control Panel @ Settings > Plugins > Doxter
  5. FieldType settings can be adjusted when you create your Doxter field

Features

  • Live Preview Support
  • Fast and consistent Github Flavored Markdown Parsing
  • Linkable Headers based on parsing settings
  • Advanced Reference Tags parsing
  • Minimalist editor with custom toolbar for Reference Tags
  • Extensible Shortcode parsing support
  • Event driven parsing API for developers
  • Advanced fenced codeblock parsing
  • Support for typography styles for better web typography
  • Support for multiple fieldtypes in single Entry Type or Matrix Field
  • Unit Tested with care

Doxter Field

Doxter is a field type that allows you to write and parse markdown content.

Workflow

  1. Create a new Doxter field
  2. Add the new field to a field layout in your entry type
  3. Write your markdown and save it along with your entry

The content will be saved as plain text and returned as a DoxterModel

Doxter Model

text()

Returns the plain text content stored via the field type

{{ entry.doxterField.text() }}

It is also worth noting that this is the default behavior when you use you the Doxter in string context.

{# __toString() returns the text() equivalent #}
{{ entry.doxterField }}

html()

Returns properly formatted HTML parsed from the the plain text content stored via the Doxter field type.

{{ entry.doxterField.html() }}

Calling html() without any params will use the default parsing option defined in your settings. Passing an options object html({}) gives you full control on a per field basis.

Doxter Filter

The doxter filter is still supported and can be used to parse markdown from any source.

{{ "Doxter _markdown_"|doxter }}
{# or #}
{{ "Doxter _markdown_"|doxter({}) }}

Options

The Doxter Model html() method and the Doxter Filter accept an array of options to override your defaults.

Option Type Default Description
codeBlockSnippet string see snippet below
addHeaderAnchors boolean true Whether to parse headers and add anchors for direct linking
addHeaderAnchorsTo array [h1, h2, h3] Which headers to add anchors to if header parsing is enabled
addTypographyStyles bool false Whether typography styles should be applied
startingHeaderLevel string h1 Which tag should be use for the initial header discussed on issue #13
parseReferenceTags boolean true Whether reference tags should be parsed
parseShortcodes boolean true Whether Doxter supported shortcodes should be parsed

Default Code Block Snippet

The code block snippet allows you to define how fenced code blocks should be rendered by providing two variables you can use in your snippet.

<!-- Default snippet targets RainbowJS -->
<pre><code data-language="language-{languageClass}">{sourceCode}</code></pre>
Variable Description Example
languageClass The programming/scripting language added in the fenced code block js, php
sourceCode The actual code inside the fenced code block echo "Code";

Changes

All noteworthy changes can be found in CHANGELOG.md

Feedback

If you have any feedback, questions, or concerns, please reach out to me on twitter @selvinortiz

Credits

Doxter was lovingly crafted by Selvin Ortiz with the help of these third party libraries.

  1. Parsedown for lightening fast and consistent markdown parsing
  2. Parsedown Extra for lightening fast and consistent markdown

Special thanks to their developer and maintainers!

License

Doxter is open source software licensed under the MIT license

Open Source Initiative

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].